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
Returns a new instance of ExportCustomJobListResponse.
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_job ⇒ Object
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 |
#headers ⇒ Object
330 331 332 |
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 330 def headers @headers end |
#status_code ⇒ Object
334 335 336 |
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 334 def status_code @status_code end |