Class: Twilio::REST::Api::V2010::AccountContext::CallContext::StreamListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::CallContext::StreamListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/call/stream.rb
Instance Method Summary collapse
-
#initialize(version, payload, key) ⇒ StreamListResponse
constructor
A new instance of StreamListResponse.
- #stream_instance ⇒ Object
Constructor Details
#initialize(version, payload, key) ⇒ StreamListResponse
Returns a new instance of StreamListResponse.
1449 1450 1451 1452 1453 1454 1455 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/stream.rb', line 1449 def initialize(version, payload, key) @stream_instance = payload.body[key].map do |data| StreamInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#stream_instance ⇒ Object
1457 1458 1459 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/stream.rb', line 1457 def stream_instance @instance end |