Class: Twilio::REST::Bulkexports::V1::ExportContext::ExportCustomJobPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Bulkexports::V1::ExportContext::ExportCustomJobPageMetadata
- Defined in:
- lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#export_custom_job_page ⇒ Object
readonly
Returns the value of attribute export_custom_job_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ ExportCustomJobPageMetadata
constructor
A new instance of ExportCustomJobPageMetadata.
- #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) ⇒ ExportCustomJobPageMetadata
Returns a new instance of ExportCustomJobPageMetadata.
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 275 def initialize(version, response, solution, limit) super(version, response) @export_custom_job_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @export_custom_job_page << ExportCustomJobListResponse.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
#export_custom_job_page ⇒ Object (readonly)
Returns the value of attribute export_custom_job_page.
273 274 275 |
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 273 def export_custom_job_page @export_custom_job_page end |
Instance Method Details
#each ⇒ Object
291 292 293 294 295 |
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 291 def each @export_custom_job_page.each do |record| yield record end end |
#to_s ⇒ Object
297 298 299 |
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 297 def to_s '<Twilio::REST::Bulkexports::V1PageMetadata>'; end |