Class: Twilio::REST::Insights::V2::OutboundListResponse
- Inherits:
-
Twilio::REST::InstanceListResource
- Object
- Twilio::REST::InstanceListResource
- Twilio::REST::Insights::V2::OutboundListResponse
- Defined in:
- lib/twilio-ruby/rest/insights/v2/outbound.rb,
lib/twilio-ruby/rest/insights/v2/outbound.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ OutboundListResponse
constructor
A new instance of OutboundListResponse.
- #outbound ⇒ Object
- #outbound_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ OutboundListResponse
Returns a new instance of OutboundListResponse.
365 366 367 368 369 370 371 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 365 def initialize(version, payload, key) @outbound_instance = payload.body[key].map do |data| OutboundInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
458 459 460 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 458 def headers @headers end |
#outbound ⇒ Object
454 455 456 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 454 def outbound @outbound end |
#outbound_instance ⇒ Object
373 374 375 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 373 def outbound_instance @instance end |
#status_code ⇒ Object
462 463 464 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 462 def status_code @status_code end |