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.
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
#headers ⇒ Object
438 439 440 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 438 def headers @headers end |
#payment ⇒ Object
434 435 436 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 434 def payment @payment end |
#payment_instance ⇒ Object
353 354 355 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 353 def payment_instance @instance end |
#status_code ⇒ Object
442 443 444 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/payment.rb', line 442 def status_code @status_code end |