Class: Twilio::REST::Bulkexports::V1::ExportContext::ExportCustomJobListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Bulkexports::V1::ExportContext::ExportCustomJobListResponse
- Defined in:
- lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb
Instance Method Summary collapse
- #export_custom_job ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ExportCustomJobListResponse
constructor
A new instance of ExportCustomJobListResponse.
- #status_code ⇒ Object
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_job ⇒ Object
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 |
#headers ⇒ Object
322 323 324 |
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 322 def headers @headers end |
#status_code ⇒ Object
326 327 328 |
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 326 def status_code @status_code end |