Class: Google::Apis::FormsV1::QuizSettings

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

Settings related to quiz forms and grading. These must be updated with the UpdateSettingsRequest.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_quizBoolean 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

Returns:

  • (Boolean)


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