Class: Twilio::REST::Preview::Wireless::CommandListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Preview::Wireless::CommandListResponse
- Defined in:
- lib/twilio-ruby/rest/preview/wireless/command.rb,
lib/twilio-ruby/rest/preview/wireless/command.rb
Instance Method Summary collapse
- #command ⇒ Object
- #command_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ CommandListResponse
constructor
A new instance of CommandListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ CommandListResponse
Returns a new instance of CommandListResponse.
387 388 389 390 391 392 393 |
# File 'lib/twilio-ruby/rest/preview/wireless/command.rb', line 387 def initialize(version, payload, key) @command_instance = payload.body[key].map do |data| CommandInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#command ⇒ Object
476 477 478 |
# File 'lib/twilio-ruby/rest/preview/wireless/command.rb', line 476 def command @command end |
#command_instance ⇒ Object
395 396 397 |
# File 'lib/twilio-ruby/rest/preview/wireless/command.rb', line 395 def command_instance @instance end |
#headers ⇒ Object
480 481 482 |
# File 'lib/twilio-ruby/rest/preview/wireless/command.rb', line 480 def headers @headers end |
#status_code ⇒ Object
484 485 486 |
# File 'lib/twilio-ruby/rest/preview/wireless/command.rb', line 484 def status_code @status_code end |