Class: Google::Apis::MybusinessqandaV1::UpsertAnswerRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#answerGoogle::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