Class: Google::Apis::FormsV1::CorrectAnswer
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::CorrectAnswer
- 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 single correct answer for a question. For multiple-valued (CHECKBOX
)
questions, several CorrectAnswer
s may be needed to represent a single
correct response option.
Instance Attribute Summary collapse
-
#value ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CorrectAnswer
constructor
A new instance of CorrectAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CorrectAnswer
Returns a new instance of CorrectAnswer.
197 198 199 |
# File 'lib/google/apis/forms_v1/classes.rb', line 197 def initialize(**args) update!(**args) end |
Instance Attribute Details
#value ⇒ String
Required. The correct answer value. See the documentation for TextAnswer.value
for details on how various value types are formatted.
Corresponds to the JSON property value
195 196 197 |
# File 'lib/google/apis/forms_v1/classes.rb', line 195 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
202 203 204 |
# File 'lib/google/apis/forms_v1/classes.rb', line 202 def update!(**args) @value = args[:value] if args.key?(:value) end |