Class: Google::Apis::MybusinessqandaV1::ListAnswersResponse
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessqandaV1::ListAnswersResponse
- 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
-
#answers ⇒ Array<Google::Apis::MybusinessqandaV1::Answer>
The requested answers.
-
#next_page_token ⇒ String
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.
-
#total_size ⇒ Fixnum
The total number of answers posted for this question across all pages.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListAnswersResponse
constructor
A new instance of ListAnswersResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#answers ⇒ Array<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_token ⇒ String
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
137 138 139 |
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 137 def next_page_token @next_page_token end |
#total_size ⇒ Fixnum
The total number of answers posted for this question across all pages.
Corresponds to the JSON property totalSize
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 |