Class: Twilio::REST::Bulkexports::V1::ExportListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ExportListResponse.

Parameters:

  • instance (Array<ExportInstance>)
  • headers (Hash{String => Object})
  • status_code (Integer)


200
201
202
203
204
205
206
# File 'lib/twilio-ruby/rest/bulkexports/v1/export.rb', line 200

def initialize(version, payload, key)
   @export_instance = payload.body[key].map do |data|
    ExportInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#exportObject



289
290
291
# File 'lib/twilio-ruby/rest/bulkexports/v1/export.rb', line 289

def export
    @export
end

#export_instanceObject



208
209
210
# File 'lib/twilio-ruby/rest/bulkexports/v1/export.rb', line 208

def export_instance
    @instance
end

#headersObject



293
294
295
# File 'lib/twilio-ruby/rest/bulkexports/v1/export.rb', line 293

def headers
  @headers
end

#status_codeObject



297
298
299
# File 'lib/twilio-ruby/rest/bulkexports/v1/export.rb', line 297

def status_code
  @status_code
end