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)


381
382
383
384
385
386
387
# File 'lib/twilio-ruby/rest/supersim/v1/ip_command.rb', line 381

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



474
475
476
# File 'lib/twilio-ruby/rest/supersim/v1/ip_command.rb', line 474

def headers
  @headers
end

#ip_commandObject



470
471
472
# File 'lib/twilio-ruby/rest/supersim/v1/ip_command.rb', line 470

def ip_command
    @ip_command
end

#ip_command_instanceObject



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

def ip_command_instance
    @instance
end

#status_codeObject



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

def status_code
  @status_code
end