Class: Ratis::FleetLocation
- Inherits:
-
Object
- Object
- Ratis::FleetLocation
- Defined in:
- lib/ratis/fleet_location.rb
Overview
Class Method Summary collapse
Class Method Details
.current ⇒ Object
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 |