Class: Google::Apis::FormsV1::FormSettings

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 form's settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FormSettings

Returns a new instance of FormSettings.



669
670
671
# File 'lib/google/apis/forms_v1/classes.rb', line 669

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#email_collection_typeString

Optional. The setting that determines whether the form collects email addresses from respondents. Corresponds to the JSON property emailCollectionType

Returns:

  • (String)


661
662
663
# File 'lib/google/apis/forms_v1/classes.rb', line 661

def email_collection_type
  @email_collection_type
end

#quiz_settingsGoogle::Apis::FormsV1::QuizSettings

Settings related to quiz forms and grading. These must be updated with the UpdateSettingsRequest. Corresponds to the JSON property quizSettings



667
668
669
# File 'lib/google/apis/forms_v1/classes.rb', line 667

def quiz_settings
  @quiz_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



674
675
676
677
# File 'lib/google/apis/forms_v1/classes.rb', line 674

def update!(**args)
  @email_collection_type = args[:email_collection_type] if args.key?(:email_collection_type)
  @quiz_settings = args[:quiz_settings] if args.key?(:quiz_settings)
end