Class: Twilio::REST::Chat::V2::ServiceContext::ChannelInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/chat/v2/service/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.



562
563
564
565
# File 'lib/twilio-ruby/rest/chat/v2/service/channel.rb', line 562

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

Instance Method Details

#channelObject



567
568
569
# File 'lib/twilio-ruby/rest/chat/v2/service/channel.rb', line 567

def channel
    @channel_instance
end

#headersObject



571
572
573
# File 'lib/twilio-ruby/rest/chat/v2/service/channel.rb', line 571

def headers
    @headers
end

#status_codeObject



575
576
577
# File 'lib/twilio-ruby/rest/chat/v2/service/channel.rb', line 575

def status_code
    @status_code
end

#to_sObject



579
580
581
# File 'lib/twilio-ruby/rest/chat/v2/service/channel.rb', line 579

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