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,
lib/twilio-ruby/rest/api/v2010/account/call/payment.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ PaymentListResponse
constructor
A new instance of PaymentListResponse.
- #payment ⇒ Object
- #payment_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ 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
#headers ⇒ Object
450 451 452 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 450 def headers @headers end |
#payment ⇒ Object
446 447 448 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 446 def payment @payment end |
#payment_instance ⇒ Object
365 366 367 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 365 def payment_instance @instance end |
#status_code ⇒ Object
454 455 456 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 454 def status_code @status_code end |