Class: Twilio::REST::FlexApi::V1::WebChannelListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::FlexApi::V1::WebChannelListResponse
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/web_channel.rb,
lib/twilio-ruby/rest/flex_api/v1/web_channel.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ WebChannelListResponse
constructor
A new instance of WebChannelListResponse.
- #status_code ⇒ Object
- #web_channel ⇒ Object
- #web_channel_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ WebChannelListResponse
Returns a new instance of WebChannelListResponse.
445 446 447 448 449 450 451 |
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 445 def initialize(version, payload, key) @web_channel_instance = payload.body[key].map do |data| WebChannelInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
538 539 540 |
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 538 def headers @headers end |
#status_code ⇒ Object
542 543 544 |
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 542 def status_code @status_code end |
#web_channel ⇒ Object
534 535 536 |
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 534 def web_channel @web_channel end |
#web_channel_instance ⇒ Object
453 454 455 |
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 453 def web_channel_instance @instance end |