Class: Google::Apis::MybusinessqandaV1::UpsertAnswerRequest
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessqandaV1::UpsertAnswerRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessqanda_v1/classes.rb,
lib/google/apis/mybusinessqanda_v1/representations.rb,
lib/google/apis/mybusinessqanda_v1/representations.rb
Overview
Request message for QuestionsAndAnswers.UpsertAnswer
Instance Attribute Summary collapse
-
#answer ⇒ Google::Apis::MybusinessqandaV1::Answer
Represents an answer to a question Corresponds to the JSON property
answer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpsertAnswerRequest
constructor
A new instance of UpsertAnswerRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpsertAnswerRequest
Returns a new instance of UpsertAnswerRequest.
266 267 268 |
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 266 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ Google::Apis::MybusinessqandaV1::Answer
Represents an answer to a question
Corresponds to the JSON property answer
264 265 266 |
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 264 def answer @answer end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
271 272 273 |
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 271 def update!(**args) @answer = args[:answer] if args.key?(:answer) end |