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.



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

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)


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

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)


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

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)


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

def max_files
  @max_files
end

#typesArray<String>

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

Returns:

  • (Array<String>)


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