class Google::Apis::MybusinessqandaV1::Answer

Represents an answer to a question

Attributes

author[RW]

Represents the author of a question or answer Corresponds to the JSON property ‘author` @return [Google::Apis::MybusinessqandaV1::Author]

create_time[RW]

Output only. The timestamp for when the answer was written. Only retrieved during ListResponse fetching. Corresponds to the JSON property ‘createTime` @return [String]

name[RW]

Output only. The unique name for the answer locations//questions//answers/* Corresponds to the JSON property ‘name` @return [String]

text[RW]

Required. The text of the answer. It should contain at least one non- whitespace character. The maximum length is 4096 characters. Corresponds to the JSON property ‘text` @return [String]

update_time[RW]

Output only. The timestamp for when the answer was last modified. Corresponds to the JSON property ‘updateTime` @return [String]

upvote_count[RW]

Output only. The number of upvotes for the answer. Corresponds to the JSON property ‘upvoteCount` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/mybusinessqanda_v1/classes.rb, line 61
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/mybusinessqanda_v1/classes.rb, line 66
def update!(**args)
  @author = args[:author] if args.key?(:author)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @text = args[:text] if args.key?(:text)
  @update_time = args[:update_time] if args.key?(:update_time)
  @upvote_count = args[:upvote_count] if args.key?(:upvote_count)
end