Class: Twilio::REST::FlexApi::V1::InsightsQuestionnairesCategoryPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::FlexApi::V1::InsightsQuestionnairesCategoryPageMetadata
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#insights_questionnaires_category_page ⇒ Object
readonly
Returns the value of attribute insights_questionnaires_category_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ InsightsQuestionnairesCategoryPageMetadata
constructor
A new instance of InsightsQuestionnairesCategoryPageMetadata.
- #to_s ⇒ Object
Methods inherited from PageMetadata
#get_key, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response
Constructor Details
#initialize(version, response, solution, limit) ⇒ InsightsQuestionnairesCategoryPageMetadata
Returns a new instance of InsightsQuestionnairesCategoryPageMetadata.
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb', line 433 def initialize(version, response, solution, limit) super(version, response) @insights_questionnaires_category_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @insights_questionnaires_category_page << InsightsQuestionnairesCategoryListResponse.new(version, @payload, key, limit - records) @payload = self.next_page break unless @payload records += @payload.body[key].size end # Path Solution @solution = solution end |
Instance Attribute Details
#insights_questionnaires_category_page ⇒ Object (readonly)
Returns the value of attribute insights_questionnaires_category_page.
431 432 433 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb', line 431 def insights_questionnaires_category_page @insights_questionnaires_category_page end |
Instance Method Details
#each ⇒ Object
449 450 451 452 453 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb', line 449 def each @insights_questionnaires_category_page.each do |record| yield record end end |
#to_s ⇒ Object
455 456 457 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb', line 455 def to_s '<Twilio::REST::FlexApi::V1PageMetadata>'; end |