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.
265 266 267 |
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 265 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
263 264 265 |
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 263 def answer @answer end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
270 271 272 |
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 270 def update!(**args) @answer = args[:answer] if args.key?(:answer) end |