Class: Twilio::REST::Messaging::V1::ServiceContext::DestinationAlphaSenderInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, destination_alpha_sender_instance, headers, status_code) ⇒ DestinationAlphaSenderInstanceMetadata

Initializes a new DestinationAlphaSenderInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}DestinationAlphaSenderInstance]

    destination_alpha_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.



346
347
348
349
# File 'lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb', line 346

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

Instance Method Details

#destination_alpha_senderObject



351
352
353
# File 'lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb', line 351

def destination_alpha_sender
    @destination_alpha_sender_instance
end

#headersObject



355
356
357
# File 'lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb', line 355

def headers
    @headers
end

#status_codeObject



359
360
361
# File 'lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb', line 359

def status_code
    @status_code
end

#to_sObject



363
364
365
# File 'lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb', line 363

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