Class: Google::Apis::DeveloperknowledgeV1alpha::Answer

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/developerknowledge_v1alpha/classes.rb,
lib/google/apis/developerknowledge_v1alpha/representations.rb,
lib/google/apis/developerknowledge_v1alpha/representations.rb

Overview

An answer to a query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Answer

Returns a new instance of Answer.



34
35
36
# File 'lib/google/apis/developerknowledge_v1alpha/classes.rb', line 34

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#answer_textString

The text of the answer. Corresponds to the JSON property answerText

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/developerknowledge_v1alpha/classes.rb', line 32

def answer_text
  @answer_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



39
40
41
# File 'lib/google/apis/developerknowledge_v1alpha/classes.rb', line 39

def update!(**args)
  @answer_text = args[:answer_text] if args.key?(:answer_text)
end