Class: Google::Apis::FormsV1::TextAnswers

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

A question's answers as text.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TextAnswers

Returns a new instance of TextAnswers.



1594
1595
1596
# File 'lib/google/apis/forms_v1/classes.rb', line 1594

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#answersArray<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



1592
1593
1594
# File 'lib/google/apis/forms_v1/classes.rb', line 1592

def answers
  @answers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1599
1600
1601
# File 'lib/google/apis/forms_v1/classes.rb', line 1599

def update!(**args)
  @answers = args[:answers] if args.key?(:answers)
end