Class: Twilio::REST::Api::V2010::AccountContext::CallContext::PaymentListResponse

Inherits:
InstanceListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/api/v2010/account/call/payment.rb,
lib/twilio-ruby/rest/api/v2010/account/call/payment.rb

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PaymentListResponse.

Parameters:

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


357
358
359
360
361
362
363
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 357

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

Instance Method Details

#headersObject



450
451
452
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 450

def headers
  @headers
end

#paymentObject



446
447
448
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 446

def payment
    @payment
end

#payment_instanceObject



365
366
367
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 365

def payment_instance
    @instance
end

#status_codeObject



454
455
456
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 454

def status_code
  @status_code
end