Class: Twilio::REST::Chat::V3::ChannelListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Chat::V3::ChannelListResponse
- Defined in:
- lib/twilio-ruby/rest/chat/v3/channel.rb,
lib/twilio-ruby/rest/chat/v3/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.
181 182 183 184 185 186 187 |
# File 'lib/twilio-ruby/rest/chat/v3/channel.rb', line 181 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
270 271 272 |
# File 'lib/twilio-ruby/rest/chat/v3/channel.rb', line 270 def channel @channel end |
#channel_instance ⇒ Object
189 190 191 |
# File 'lib/twilio-ruby/rest/chat/v3/channel.rb', line 189 def channel_instance @instance end |
#headers ⇒ Object
274 275 276 |
# File 'lib/twilio-ruby/rest/chat/v3/channel.rb', line 274 def headers @headers end |
#status_code ⇒ Object
278 279 280 |
# File 'lib/twilio-ruby/rest/chat/v3/channel.rb', line 278 def status_code @status_code end |