Class: Google::Apis::MybusinessqandaV1::ListQuestionsResponse

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.ListQuestions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListQuestionsResponse

Returns a new instance of ListQuestionsResponse.



178
179
180
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 178

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

Instance Attribute Details

#next_page_tokenString

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

Returns:

  • (String)


166
167
168
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 166

def next_page_token
  @next_page_token
end

#questionsArray<Google::Apis::MybusinessqandaV1::Question>

The requested questions, Corresponds to the JSON property questions



171
172
173
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 171

def questions
  @questions
end

#total_sizeFixnum

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

Returns:

  • (Fixnum)


176
177
178
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 176

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



183
184
185
186
187
# File 'lib/google/apis/mybusinessqanda_v1/classes.rb', line 183

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