Class: Twilio::REST::FlexApi::V1::WebChannelInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, web_channel_instance, headers, status_code) ⇒ WebChannelInstanceMetadata

Initializes a new WebChannelInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}WebChannelInstance]

    web_channel_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



419
420
421
422
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 419

def initialize(version, web_channel_instance, headers, status_code)
    super(version, headers, status_code)
    @web_channel_instance = web_channel_instance
end

Instance Method Details

#headersObject



428
429
430
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 428

def headers
    @headers
end

#status_codeObject



432
433
434
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 432

def status_code
    @status_code
end

#to_sObject



436
437
438
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 436

def to_s
  "<Twilio.Api.V2010.WebChannelInstanceMetadata status=#{@status_code}>"
end

#web_channelObject



424
425
426
# File 'lib/twilio-ruby/rest/flex_api/v1/web_channel.rb', line 424

def web_channel
    @web_channel_instance
end