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.



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

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)


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

def next_page_token
  @next_page_token
end

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

The requested questions, Corresponds to the JSON property questions



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

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)


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

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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