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.
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb', line 441 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.
439 440 441 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb', line 439 def insights_questionnaires_category_page @insights_questionnaires_category_page end |
Instance Method Details
#each ⇒ Object
457 458 459 460 461 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb', line 457 def each @insights_questionnaires_category_page.each do |record| yield record end end |
#to_s ⇒ Object
463 464 465 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb', line 463 def to_s '<Twilio::REST::FlexApi::V1PageMetadata>'; end |