Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
An answer with a corresponding label.
Instance Attribute Summary collapse
-
#answer ⇒ String
The free text answer.
-
#label ⇒ String
A localized label for the answer (e.g. "Cell phone" vs "Desk phone").
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer
constructor
A new instance of EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer
Returns a new instance of EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer.
1488 1489 1490 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1488 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ String
The free text answer.
Corresponds to the JSON property answer
1481 1482 1483 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1481 def answer @answer end |
#label ⇒ String
A localized label for the answer (e.g. "Cell phone" vs "Desk phone").
Corresponds to the JSON property label
1486 1487 1488 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1486 def label @label end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1493 1494 1495 1496 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1493 def update!(**args) @answer = args[:answer] if args.key?(:answer) @label = args[:label] if args.key?(:label) end |