Class: Twilio::REST::Supersim::V1::SmsCommandListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SmsCommandListResponse.

Parameters:

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


369
370
371
372
373
374
375
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 369

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

Instance Method Details

#headersObject



462
463
464
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 462

def headers
  @headers
end

#sms_commandObject



458
459
460
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 458

def sms_command
    @sms_command
end

#sms_command_instanceObject



377
378
379
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 377

def sms_command_instance
    @instance
end

#status_codeObject



466
467
468
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 466

def status_code
  @status_code
end