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.
1260 1261 1262 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1260 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
1257 1258 1259 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1257 def is_quiz @is_quiz end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1265 1266 1267 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1265 def update!(**args) @is_quiz = args[:is_quiz] if args.key?(:is_quiz) end |