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.
405 406 407 408 409 410 411 |
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 405 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
494 495 496 |
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 494 def channel @channel end |
#channel_instance ⇒ Object
413 414 415 |
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 413 def channel_instance @instance end |
#headers ⇒ Object
498 499 500 |
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 498 def headers @headers end |
#status_code ⇒ Object
502 503 504 |
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 502 def status_code @status_code end |