Class: Google::Apis::FormsV1::FileUploadAnswer
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::FileUploadAnswer
- 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
Info for a single file submitted to a file upload question.
Instance Attribute Summary collapse
-
#file_id ⇒ String
Output only.
-
#file_name ⇒ String
Output only.
-
#mime_type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FileUploadAnswer
constructor
A new instance of FileUploadAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FileUploadAnswer
Returns a new instance of FileUploadAnswer.
447 448 449 |
# File 'lib/google/apis/forms_v1/classes.rb', line 447 def initialize(**args) update!(**args) end |
Instance Attribute Details
#file_id ⇒ String
Output only. The ID of the Google Drive file.
Corresponds to the JSON property fileId
435 436 437 |
# File 'lib/google/apis/forms_v1/classes.rb', line 435 def file_id @file_id end |
#file_name ⇒ String
Output only. The file name, as stored in Google Drive on upload.
Corresponds to the JSON property fileName
440 441 442 |
# File 'lib/google/apis/forms_v1/classes.rb', line 440 def file_name @file_name end |
#mime_type ⇒ String
Output only. The MIME type of the file, as stored in Google Drive on upload.
Corresponds to the JSON property mimeType
445 446 447 |
# File 'lib/google/apis/forms_v1/classes.rb', line 445 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
452 453 454 455 456 |
# File 'lib/google/apis/forms_v1/classes.rb', line 452 def update!(**args) @file_id = args[:file_id] if args.key?(:file_id) @file_name = args[:file_name] if args.key?(:file_name) @mime_type = args[:mime_type] if args.key?(:mime_type) end |