class Google::Apis::MybusinessqandaV1::Answer
Represents an answer to a question
Attributes
Output only. The timestamp for when the answer was written. Only retrieved during ListResponse fetching. Corresponds to the JSON property ‘createTime` @return [String]
Output only. The unique name for the answer locations//questions//answers/* Corresponds to the JSON property ‘name` @return [String]
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]
Output only. The timestamp for when the answer was last modified. Corresponds to the JSON property ‘updateTime` @return [String]
Output only. The number of upvotes for the answer. Corresponds to the JSON property ‘upvoteCount` @return [Fixnum]
Public Class Methods
# File lib/google/apis/mybusinessqanda_v1/classes.rb, line 61 def initialize(**args) update!(**args) end
Public Instance Methods
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