Class: Google::Apis::FormsV1::FileUploadAnswer

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

Info for a single file submitted to a file upload question.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idString

Output only. The ID of the Google Drive file. Corresponds to the JSON property fileId

Returns:

  • (String)


435
436
437
# File 'lib/google/apis/forms_v1/classes.rb', line 435

def file_id
  @file_id
end

#file_nameString

Output only. The file name, as stored in Google Drive on upload. Corresponds to the JSON property fileName

Returns:

  • (String)


440
441
442
# File 'lib/google/apis/forms_v1/classes.rb', line 440

def file_name
  @file_name
end

#mime_typeString

Output only. The MIME type of the file, as stored in Google Drive on upload. Corresponds to the JSON property mimeType

Returns:

  • (String)


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