Class: Twilio::REST::Api::V2010::AccountContext::CallContext::PaymentListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::CallContext::PaymentListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/call/payment.rb
Instance Method Summary collapse
-
#initialize(version, payload, key) ⇒ PaymentListResponse
constructor
A new instance of PaymentListResponse.
- #payment_instance ⇒ Object
Constructor Details
#initialize(version, payload, key) ⇒ PaymentListResponse
Returns a new instance of PaymentListResponse.
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
#payment_instance ⇒ Object
365 366 367 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 365 def payment_instance @instance end |