Class: Twilio::REST::Supersim::V1::FleetListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Supersim::V1::FleetListResponse
- Defined in:
- lib/twilio-ruby/rest/supersim/v1/fleet.rb,
lib/twilio-ruby/rest/supersim/v1/fleet.rb
Instance Method Summary collapse
- #fleet ⇒ Object
- #fleet_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ FleetListResponse
constructor
A new instance of FleetListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ FleetListResponse
Returns a new instance of FleetListResponse.
469 470 471 472 473 474 475 |
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 469 def initialize(version, payload, key) @fleet_instance = payload.body[key].map do |data| FleetInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#fleet ⇒ Object
558 559 560 |
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 558 def fleet @fleet end |
#fleet_instance ⇒ Object
477 478 479 |
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 477 def fleet_instance @instance end |
#headers ⇒ Object
562 563 564 |
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 562 def headers @headers end |
#status_code ⇒ Object
566 567 568 |
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 566 def status_code @status_code end |