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
|