Class: Twilio::REST::FlexApi::V1::InsightsSettingsCommentPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::FlexApi::V1::InsightsSettingsCommentPageMetadata
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#insights_settings_comment_page ⇒ Object
readonly
Returns the value of attribute insights_settings_comment_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ InsightsSettingsCommentPageMetadata
constructor
A new instance of InsightsSettingsCommentPageMetadata.
- #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) ⇒ InsightsSettingsCommentPageMetadata
Returns a new instance of InsightsSettingsCommentPageMetadata.
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 124 def initialize(version, response, solution, limit) super(version, response) @insights_settings_comment_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @insights_settings_comment_page << InsightsSettingsCommentListResponse.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_settings_comment_page ⇒ Object (readonly)
Returns the value of attribute insights_settings_comment_page.
122 123 124 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 122 def insights_settings_comment_page @insights_settings_comment_page end |
Instance Method Details
#each ⇒ Object
140 141 142 143 144 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 140 def each @insights_settings_comment_page.each do |record| yield record end end |
#to_s ⇒ Object
146 147 148 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 146 def to_s '<Twilio::REST::FlexApi::V1PageMetadata>'; end |