Class: Twilio::REST::FlexApi::V1::ChannelInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, channel_instance, headers, status_code) ⇒ ChannelInstanceMetadata

Initializes a new ChannelInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}ChannelInstance]

    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.



379
380
381
382
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 379

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

Instance Method Details

#channelObject



384
385
386
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 384

def channel
    @channel_instance
end

#headersObject



388
389
390
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 388

def headers
    @headers
end

#status_codeObject



392
393
394
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 392

def status_code
    @status_code
end

#to_sObject



396
397
398
# File 'lib/twilio-ruby/rest/flex_api/v1/channel.rb', line 396

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