Class: Twilio::REST::Supersim::V1::IpCommandListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/supersim/v1/ip_command.rb,
lib/twilio-ruby/rest/supersim/v1/ip_command.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ IpCommandListResponse

Returns a new instance of IpCommandListResponse.

Parameters:

  • instance (Array<IpCommandInstance>)
  • headers (Hash{String => Object})
  • status_code (Integer)


389
390
391
392
393
394
395
# File 'lib/twilio-ruby/rest/supersim/v1/ip_command.rb', line 389

def initialize(version, payload, key)
   @ip_command_instance = payload.body[key].map do |data|
    IpCommandInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#headersObject



482
483
484
# File 'lib/twilio-ruby/rest/supersim/v1/ip_command.rb', line 482

def headers
  @headers
end

#ip_commandObject



478
479
480
# File 'lib/twilio-ruby/rest/supersim/v1/ip_command.rb', line 478

def ip_command
    @ip_command
end

#ip_command_instanceObject



397
398
399
# File 'lib/twilio-ruby/rest/supersim/v1/ip_command.rb', line 397

def ip_command_instance
    @instance
end

#status_codeObject



486
487
488
# File 'lib/twilio-ruby/rest/supersim/v1/ip_command.rb', line 486

def status_code
  @status_code
end