Class: Twilio::REST::Supersim::V1::SmsCommandInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, sms_command_instance, headers, status_code) ⇒ SmsCommandInstanceMetadata

Initializes a new SmsCommandInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}SmsCommandInstance]

    sms_command_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



343
344
345
346
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 343

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

Instance Method Details

#headersObject



352
353
354
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 352

def headers
    @headers
end

#sms_commandObject



348
349
350
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 348

def sms_command
    @sms_command_instance
end

#status_codeObject



356
357
358
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 356

def status_code
    @status_code
end

#to_sObject



360
361
362
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 360

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