Class: Google::Apis::MybusinessqandaV1::ListAnswersResponse

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

Response message for QuestionsAndAnswers.ListAnswers

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListAnswersResponse

Returns a new instance of ListAnswersResponse.



144
145
146
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 144

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

Instance Attribute Details

#answersArray<Google::Apis::MybusinessqandaV1::Answer>

The requested answers. Corresponds to the JSON property answers



130
131
132
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 130

def answers
  @answers
end

#next_page_tokenString

If the number of answers exceeds the requested max page size, this field is populated with a token to fetch the next page of answers on a subsequent call. If there are no more answers, this field is not present in the response. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


137
138
139
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 137

def next_page_token
  @next_page_token
end

#total_sizeFixnum

The total number of answers posted for this question across all pages. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


142
143
144
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 142

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



149
150
151
152
153
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 149

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