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)


345
346
347
348
349
350
351
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 345

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



438
439
440
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 438

def headers
  @headers
end

#paymentObject



434
435
436
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 434

def payment
    @payment
end

#payment_instanceObject



353
354
355
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 353

def payment_instance
    @instance
end

#status_codeObject



442
443
444
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 442

def status_code
  @status_code
end