Class: Twilio::REST::Chat::V2::ServiceContext::UserContext::UserChannelListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Chat::V2::ServiceContext::UserContext::UserChannelListResponse
- Defined in:
- lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb,
lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ UserChannelListResponse
constructor
A new instance of UserChannelListResponse.
- #status_code ⇒ Object
- #user_channel ⇒ Object
- #user_channel_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ UserChannelListResponse
Returns a new instance of UserChannelListResponse.
384 385 386 387 388 389 390 |
# File 'lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb', line 384 def initialize(version, payload, key) @user_channel_instance = payload.body[key].map do |data| UserChannelInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
477 478 479 |
# File 'lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb', line 477 def headers @headers end |
#status_code ⇒ Object
481 482 483 |
# File 'lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb', line 481 def status_code @status_code end |
#user_channel ⇒ Object
473 474 475 |
# File 'lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb', line 473 def user_channel @user_channel end |
#user_channel_instance ⇒ Object
392 393 394 |
# File 'lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb', line 392 def user_channel_instance @instance end |