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)


445
446
447
448
449
450
451
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 445

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



538
539
540
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 538

def headers
  @headers
end

#status_codeObject



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

def status_code
  @status_code
end

#web_channelObject



534
535
536
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 534

def web_channel
    @web_channel
end

#web_channel_instanceObject



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

def web_channel_instance
    @instance
end