Class: Twilio::REST::Chat::V1::ServiceContext::UserContext::UserChannelListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Chat::V1::ServiceContext::UserContext::UserChannelListResponse
- Defined in:
- lib/twilio-ruby/rest/chat/v1/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
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ UserChannelListResponse
Returns a new instance of UserChannelListResponse.
219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb', line 219 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @user_channel = data_list.map do |data| UserChannelInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
235 236 237 |
# File 'lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb', line 235 def headers @headers end |
#status_code ⇒ Object
239 240 241 |
# File 'lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb', line 239 def status_code @status_code end |
#user_channel ⇒ Object
231 232 233 |
# File 'lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb', line 231 def user_channel @user_channel end |