Class: Twilio::REST::Insights::V2::InboundListResponse
- Inherits:
-
Twilio::REST::InstanceListResource
- Object
- Twilio::REST::InstanceListResource
- Twilio::REST::Insights::V2::InboundListResponse
- Defined in:
- lib/twilio-ruby/rest/insights/v2/inbound.rb,
lib/twilio-ruby/rest/insights/v2/inbound.rb
Instance Method Summary collapse
- #headers ⇒ Object
- #inbound ⇒ Object
- #inbound_instance ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ InboundListResponse
constructor
A new instance of InboundListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ InboundListResponse
Returns a new instance of InboundListResponse.
335 336 337 338 339 340 341 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 335 def initialize(version, payload, key) @inbound_instance = payload.body[key].map do |data| InboundInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
428 429 430 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 428 def headers @headers end |
#inbound ⇒ Object
424 425 426 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 424 def inbound @inbound end |
#inbound_instance ⇒ Object
343 344 345 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 343 def inbound_instance @instance end |
#status_code ⇒ Object
432 433 434 |
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 432 def status_code @status_code end |