Class: Twilio::REST::Numbers::V2::RegulatoryComplianceList::BundleContext::EvaluationPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Numbers::V2::RegulatoryComplianceList::BundleContext::EvaluationPageMetadata
- Defined in:
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#evaluation_page ⇒ Object
readonly
Returns the value of attribute evaluation_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ EvaluationPageMetadata
constructor
A new instance of EvaluationPageMetadata.
- #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) ⇒ EvaluationPageMetadata
Returns a new instance of EvaluationPageMetadata.
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb', line 359 def initialize(version, response, solution, limit) super(version, response) @evaluation_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @evaluation_page << EvaluationListResponse.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
#evaluation_page ⇒ Object (readonly)
Returns the value of attribute evaluation_page.
357 358 359 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb', line 357 def evaluation_page @evaluation_page end |
Instance Method Details
#each ⇒ Object
375 376 377 378 379 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb', line 375 def each @evaluation_page.each do |record| yield record end end |
#to_s ⇒ Object
381 382 383 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb', line 381 def to_s '<Twilio::REST::Numbers::V2PageMetadata>'; end |