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.
448 449 450 |
# File 'lib/google/apis/forms_v1/classes.rb', line 448 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
436 437 438 |
# File 'lib/google/apis/forms_v1/classes.rb', line 436 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
441 442 443 |
# File 'lib/google/apis/forms_v1/classes.rb', line 441 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
446 447 448 |
# File 'lib/google/apis/forms_v1/classes.rb', line 446 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
453 454 455 456 457 |
# File 'lib/google/apis/forms_v1/classes.rb', line 453 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 |