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 that contains the resource

  • sms_command_instance The instance associated with the metadata.

  • Header object with response headers.

  • The HTTP status code of the response.



335
336
337
338
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 335

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



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

def headers
    @headers
end

#sms_commandObject



340
341
342
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 340

def sms_command
    @sms_command_instance
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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

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