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.
357 358 359 360 361 362 363 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 357 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
450 451 452 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 450 def headers @headers end |
#outbound ⇒ Object
446 447 448 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 446 def outbound @outbound end |
#outbound_instance ⇒ Object
365 366 367 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 365 def outbound_instance @instance end |
#status_code ⇒ Object
454 455 456 |
# File 'lib/twilio-ruby/rest/insights/v2/outbound.rb', line 454 def status_code @status_code end |