Class: Twilio::REST::Wireless::V1::CommandInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, command_instance, headers, status_code) ⇒ CommandInstanceMetadata

Initializes a new CommandInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}CommandInstance]

    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.



393
394
395
396
# File 'lib/twilio-ruby/rest/wireless/v1/command.rb', line 393

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

Instance Method Details

#commandObject



398
399
400
# File 'lib/twilio-ruby/rest/wireless/v1/command.rb', line 398

def command
    @command_instance
end

#headersObject



402
403
404
# File 'lib/twilio-ruby/rest/wireless/v1/command.rb', line 402

def headers
    @headers
end

#status_codeObject



406
407
408
# File 'lib/twilio-ruby/rest/wireless/v1/command.rb', line 406

def status_code
    @status_code
end

#to_sObject



410
411
412
# File 'lib/twilio-ruby/rest/wireless/v1/command.rb', line 410

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