Class: Google::Apis::FormsV1::QuizSettings
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::QuizSettings
- 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
Settings related to quiz forms and grading. These must be updated with the UpdateSettingsRequest.
Instance Attribute Summary collapse
-
#is_quiz ⇒ Boolean
(also: #is_quiz?)
Whether this form is a quiz or not.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QuizSettings
constructor
A new instance of QuizSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QuizSettings
Returns a new instance of QuizSettings.
1261 1262 1263 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1261 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_quiz ⇒ Boolean Also known as: is_quiz?
Whether this form is a quiz or not. When true, responses are graded based on
question Grading. Upon setting to false, all question Grading is deleted.
Corresponds to the JSON property isQuiz
1258 1259 1260 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1258 def is_quiz @is_quiz end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1266 1267 1268 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1266 def update!(**args) @is_quiz = args[:is_quiz] if args.key?(:is_quiz) end |