Class: Twilio::REST::Chat::V2::ServiceContext::ChannelListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Chat::V2::ServiceContext::ChannelListResponse
- Defined in:
- lib/twilio-ruby/rest/chat/v2/service/channel.rb,
lib/twilio-ruby/rest/chat/v2/service/channel.rb
Instance Method Summary collapse
- #channel ⇒ Object
- #channel_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ChannelListResponse
constructor
A new instance of ChannelListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ ChannelListResponse
Returns a new instance of ChannelListResponse.
588 589 590 591 592 593 594 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel.rb', line 588 def initialize(version, payload, key) @channel_instance = payload.body[key].map do |data| ChannelInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#channel ⇒ Object
677 678 679 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel.rb', line 677 def channel @channel end |
#channel_instance ⇒ Object
596 597 598 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel.rb', line 596 def channel_instance @instance end |
#headers ⇒ Object
681 682 683 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel.rb', line 681 def headers @headers end |
#status_code ⇒ Object
685 686 687 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel.rb', line 685 def status_code @status_code end |