Class: Twilio::REST::FlexApi::V1::InsightsAssessmentsCommentPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::FlexApi::V1::InsightsAssessmentsCommentPageMetadata
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#insights_assessments_comment_page ⇒ Object
readonly
Returns the value of attribute insights_assessments_comment_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ InsightsAssessmentsCommentPageMetadata
constructor
A new instance of InsightsAssessmentsCommentPageMetadata.
- #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) ⇒ InsightsAssessmentsCommentPageMetadata
Returns a new instance of InsightsAssessmentsCommentPageMetadata.
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 299 def initialize(version, response, solution, limit) super(version, response) @insights_assessments_comment_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @insights_assessments_comment_page << InsightsAssessmentsCommentListResponse.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_assessments_comment_page ⇒ Object (readonly)
Returns the value of attribute insights_assessments_comment_page.
297 298 299 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 297 def insights_assessments_comment_page @insights_assessments_comment_page end |
Instance Method Details
#each ⇒ Object
315 316 317 318 319 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 315 def each @insights_assessments_comment_page.each do |record| yield record end end |
#to_s ⇒ Object
321 322 323 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 321 def to_s '<Twilio::REST::FlexApi::V1PageMetadata>'; end |