Class: Twilio::REST::Messaging::V2::ChannelsSenderInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/messaging/v2/channels_sender.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, channels_sender_instance, headers, status_code) ⇒ ChannelsSenderInstanceMetadata

Initializes a new ChannelsSenderInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}ChannelsSenderInstance]

    channels_sender_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



725
726
727
728
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 725

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

Instance Method Details

#channels_senderObject



730
731
732
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 730

def channels_sender
    @channels_sender_instance
end

#headersObject



734
735
736
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 734

def headers
    @headers
end

#status_codeObject



738
739
740
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 738

def status_code
    @status_code
end

#to_sObject



742
743
744
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 742

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