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.



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

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



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

def channels_sender
    @channels_sender_instance
end

#headersObject



748
749
750
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 748

def headers
    @headers
end

#status_codeObject



752
753
754
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 752

def status_code
    @status_code
end

#to_sObject



756
757
758
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 756

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