Class: Twilio::REST::FlexApi::V2::WebChannelsListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::FlexApi::V2::WebChannelsListResponse
- Defined in:
- lib/twilio-ruby/rest/flex_api/v2/web_channels.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ WebChannelsListResponse
constructor
A new instance of WebChannelsListResponse.
- #status_code ⇒ Object
- #web_channels ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ WebChannelsListResponse
Returns a new instance of WebChannelsListResponse.
191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 191 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @web_channels = data_list.map do |data| WebChannelsInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
207 208 209 |
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 207 def headers @headers end |
#status_code ⇒ Object
211 212 213 |
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 211 def status_code @status_code end |
#web_channels ⇒ Object
203 204 205 |
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 203 def web_channels @web_channels end |