Class: Twilio::REST::IpMessaging::V1::ServiceContext::UserContext::UserChannelListResponse
- Inherits:
-
Twilio::REST::InstanceListResource
- Object
- Twilio::REST::InstanceListResource
- Twilio::REST::IpMessaging::V1::ServiceContext::UserContext::UserChannelListResponse
- Defined in:
- lib/twilio-ruby/rest/ip_messaging/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.
227 228 229 230 231 232 233 234 235 236 237 |
# File 'lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb', line 227 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
243 244 245 |
# File 'lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb', line 243 def headers @headers end |
#status_code ⇒ Object
247 248 249 |
# File 'lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb', line 247 def status_code @status_code end |
#user_channel ⇒ Object
239 240 241 |
# File 'lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb', line 239 def user_channel @user_channel end |