Class: Google::Apis::FormsV1::Feedback

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

Feedback for a respondent about their response to a question.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Feedback

Returns a new instance of Feedback.



417
418
419
# File 'lib/google/apis/forms_v1/classes.rb', line 417

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

Instance Attribute Details

#materialArray<Google::Apis::FormsV1::ExtraMaterial>

Additional information provided as part of the feedback, often used to point the respondent to more reading and resources. Corresponds to the JSON property material



410
411
412
# File 'lib/google/apis/forms_v1/classes.rb', line 410

def material
  @material
end

#textString

Required. The main text of the feedback. Corresponds to the JSON property text

Returns:

  • (String)


415
416
417
# File 'lib/google/apis/forms_v1/classes.rb', line 415

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



422
423
424
425
# File 'lib/google/apis/forms_v1/classes.rb', line 422

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