Class: Twilio::REST::FlexApi::V1::WebChannelListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/flex_api/v1/web_channel.rb,
lib/twilio-ruby/rest/flex_api/v1/web_channel.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ WebChannelListResponse

Returns a new instance of WebChannelListResponse.

Parameters:

  • instance (Array<WebChannelInstance>)
  • headers (Hash{String => Object})
  • status_code (Integer)


453
454
455
456
457
458
459
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 453

def initialize(version, payload, key)
   @web_channel_instance = payload.body[key].map do |data|
    WebChannelInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#headersObject



546
547
548
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 546

def headers
  @headers
end

#status_codeObject



550
551
552
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 550

def status_code
  @status_code
end

#web_channelObject



542
543
544
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 542

def web_channel
    @web_channel
end

#web_channel_instanceObject



461
462
463
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 461

def web_channel_instance
    @instance
end