Class: Twilio::REST::Supersim::V1::SmsCommandListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Supersim::V1::SmsCommandListResponse
- Defined in:
- lib/twilio-ruby/rest/supersim/v1/sms_command.rb,
lib/twilio-ruby/rest/supersim/v1/sms_command.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ SmsCommandListResponse
constructor
A new instance of SmsCommandListResponse.
- #sms_command ⇒ Object
- #sms_command_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ SmsCommandListResponse
Returns a new instance of SmsCommandListResponse.
361 362 363 364 365 366 367 |
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 361 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
#headers ⇒ Object
454 455 456 |
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 454 def headers @headers end |
#sms_command ⇒ Object
450 451 452 |
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 450 def sms_command @sms_command end |
#sms_command_instance ⇒ Object
369 370 371 |
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 369 def sms_command_instance @instance end |
#status_code ⇒ Object
458 459 460 |
# File 'lib/twilio-ruby/rest/supersim/v1/sms_command.rb', line 458 def status_code @status_code end |