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.
1521 1522 1523 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1521 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ String
The free text answer.
Corresponds to the JSON property answer
1514 1515 1516 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1514 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
1519 1520 1521 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1519 def label @label end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1526 1527 1528 1529 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1526 def update!(**args) @answer = args[:answer] if args.key?(:answer) @label = args[:label] if args.key?(:label) end |