Class: Twilio::REST::FlexApi::V1::ChannelListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::FlexApi::V1::ChannelListResponse
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/channel.rb,
lib/twilio-ruby/rest/flex_api/v1/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.
413 414 415 416 417 418 419 |
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 413 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
502 503 504 |
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 502 def channel @channel end |
#channel_instance ⇒ Object
421 422 423 |
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 421 def channel_instance @instance end |
#headers ⇒ Object
506 507 508 |
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 506 def headers @headers end |
#status_code ⇒ Object
510 511 512 |
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 510 def status_code @status_code end |