Class: Google::Apis::FormsV1::FileUploadQuestion

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/forms_v1/classes.rb,
lib/google/apis/forms_v1/representations.rb,
lib/google/apis/forms_v1/representations.rb

Overview

A file upload question. The API currently does not support creating file upload questions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FileUploadQuestion

Returns a new instance of FileUploadQuestion.



505
506
507
# File 'lib/google/apis/forms_v1/classes.rb', line 505

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#folder_idString

Required. The ID of the Drive folder where uploaded files are stored. Corresponds to the JSON property folderId

Returns:

  • (String)


487
488
489
# File 'lib/google/apis/forms_v1/classes.rb', line 487

def folder_id
  @folder_id
end

#max_file_sizeFixnum

Maximum number of bytes allowed for any single file uploaded to this question. Corresponds to the JSON property maxFileSize

Returns:

  • (Fixnum)


492
493
494
# File 'lib/google/apis/forms_v1/classes.rb', line 492

def max_file_size
  @max_file_size
end

#max_filesFixnum

Maximum number of files that can be uploaded for this question in a single response. Corresponds to the JSON property maxFiles

Returns:

  • (Fixnum)


498
499
500
# File 'lib/google/apis/forms_v1/classes.rb', line 498

def max_files
  @max_files
end

#typesArray<String>

File types accepted by this question. Corresponds to the JSON property types

Returns:

  • (Array<String>)


503
504
505
# File 'lib/google/apis/forms_v1/classes.rb', line 503

def types
  @types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



510
511
512
513
514
515
# File 'lib/google/apis/forms_v1/classes.rb', line 510

def update!(**args)
  @folder_id = args[:folder_id] if args.key?(:folder_id)
  @max_file_size = args[:max_file_size] if args.key?(:max_file_size)
  @max_files = args[:max_files] if args.key?(:max_files)
  @types = args[:types] if args.key?(:types)
end