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.



1447
1448
1449
# File 'lib/google/apis/forms_v1/classes.rb', line 1447

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



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