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



306
307
308
309
310
311
312
313
314
315
316
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 306

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



318
319
320
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 318

def export_custom_job
    @export_custom_job
end

#headersObject



322
323
324
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 322

def headers
  @headers
end

#status_codeObject



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

def status_code
  @status_code
end