Class: Google::Apis::FormsV1::TextAnswers
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::TextAnswers
- 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 question's answers as text.
Instance Attribute Summary collapse
-
#answers ⇒ Array<Google::Apis::FormsV1::TextAnswer>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TextAnswers
constructor
A new instance of TextAnswers.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TextAnswers
Returns a new instance of TextAnswers.
1447 1448 1449 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1447 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answers ⇒ Array<Google::Apis::FormsV1::TextAnswer>
Output only. Answers to a question. For multiple-value ChoiceQuestions, each
answer is a separate value.
Corresponds to the JSON property answers
1445 1446 1447 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1445 def answers @answers end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1452 1453 1454 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1452 def update!(**args) @answers = args[:answers] if args.key?(:answers) end |