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,
lib/twilio-ruby/rest/api/v2010/account/call/stream.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ StreamListResponse
constructor
A new instance of StreamListResponse.
- #status_code ⇒ Object
- #stream ⇒ Object
- #stream_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ 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
#headers ⇒ Object
1542 1543 1544 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/stream.rb', line 1542 def headers @headers end |
#status_code ⇒ Object
1546 1547 1548 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/stream.rb', line 1546 def status_code @status_code end |
#stream ⇒ Object
1538 1539 1540 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/stream.rb', line 1538 def stream @stream end |
#stream_instance ⇒ Object
1457 1458 1459 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/stream.rb', line 1457 def stream_instance @instance end |