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.



266
267
268
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 266

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



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