Class: Ratis::FleetLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/ratis/fleet_location.rb

Overview


Class Method Summary collapse

Class Method Details

.currentObject



27
28
29
30
31
32
33
34
35
# File 'lib/ratis/fleet_location.rb', line 27

def self.current
  response = Request.get 'Fleetlocation'

  return [] unless response.success?

  response.to_array(:fleetlocation_response, :vehicles, :vehicle).map do |vehicle|
    Vehicle.new(vehicle)
  end
end