Class: Google::Apis::FormsV1::FileUploadQuestion
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::FileUploadQuestion
- 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
-
#folder_id ⇒ String
Required.
-
#max_file_size ⇒ Fixnum
Maximum number of bytes allowed for any single file uploaded to this question.
-
#max_files ⇒ Fixnum
Maximum number of files that can be uploaded for this question in a single response.
-
#types ⇒ Array<String>
File types accepted by this question.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FileUploadQuestion
constructor
A new instance of FileUploadQuestion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FileUploadQuestion
Returns a new instance of FileUploadQuestion.
504 505 506 |
# File 'lib/google/apis/forms_v1/classes.rb', line 504 def initialize(**args) update!(**args) end |
Instance Attribute Details
#folder_id ⇒ String
Required. The ID of the Drive folder where uploaded files are stored.
Corresponds to the JSON property folderId
486 487 488 |
# File 'lib/google/apis/forms_v1/classes.rb', line 486 def folder_id @folder_id end |
#max_file_size ⇒ Fixnum
Maximum number of bytes allowed for any single file uploaded to this question.
Corresponds to the JSON property maxFileSize
491 492 493 |
# File 'lib/google/apis/forms_v1/classes.rb', line 491 def max_file_size @max_file_size end |
#max_files ⇒ Fixnum
Maximum number of files that can be uploaded for this question in a single
response.
Corresponds to the JSON property maxFiles
497 498 499 |
# File 'lib/google/apis/forms_v1/classes.rb', line 497 def max_files @max_files end |
#types ⇒ Array<String>
File types accepted by this question.
Corresponds to the JSON property types
502 503 504 |
# File 'lib/google/apis/forms_v1/classes.rb', line 502 def types @types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
509 510 511 512 513 514 |
# File 'lib/google/apis/forms_v1/classes.rb', line 509 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 |