Class: Twilio::REST::Supersim::V1::FleetListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of FleetListResponse.

Parameters:

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


477
478
479
480
481
482
483
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 477

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

#fleetObject



566
567
568
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 566

def fleet
    @fleet
end

#fleet_instanceObject



485
486
487
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 485

def fleet_instance
    @instance
end

#headersObject



570
571
572
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 570

def headers
  @headers
end

#status_codeObject



574
575
576
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 574

def status_code
  @status_code
end