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)


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

#fleetObject



558
559
560
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 558

def fleet
    @fleet
end

#fleet_instanceObject



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

def fleet_instance
    @instance
end

#headersObject



562
563
564
# File 'lib/twilio-ruby/rest/supersim/v1/fleet.rb', line 562

def headers
  @headers
end

#status_codeObject



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

def status_code
  @status_code
end