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.
453 454 455 456 457 458 459 |
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 453 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
546 547 548 |
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 546 def headers @headers end |
#status_code ⇒ Object
550 551 552 |
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 550 def status_code @status_code end |
#web_channel ⇒ Object
542 543 544 |
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 542 def web_channel @web_channel end |
#web_channel_instance ⇒ Object
461 462 463 |
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 461 def web_channel_instance @instance end |