Class: Twilio::REST::Bulkexports::V1::ExportContext::ExportCustomJobListResponse

Inherits:
InstanceListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ ExportCustomJobListResponse

Returns a new instance of ExportCustomJobListResponse.

Parameters:



314
315
316
317
318
319
320
321
322
323
324
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 314

def initialize(version, payload, key, limit = :unset)
  data_list = payload.body[key]  || []
  if limit != :unset
    data_list = data_list[0, limit]
  end
  @export_custom_job = data_list.map do |data|
    ExportCustomJobInstance.new(version, data)
  end
  @headers = payload.headers
  @status_code = payload.status_code
end

Instance Method Details

#export_custom_jobObject



326
327
328
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 326

def export_custom_job
    @export_custom_job
end

#headersObject



330
331
332
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 330

def headers
  @headers
end

#status_codeObject



334
335
336
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 334

def status_code
  @status_code
end