lib/ratis/fleet_location.rb in ratis-3.4.3 vs lib/ratis/fleet_location.rb in ratis-3.5.0

- old
+ new

@@ -22,21 +22,16 @@ #-------------------------------------------- class FleetLocation - def self.current(conditions) - app_id = conditions.delete(:app_id) || 'WEB' + def self.current + response = Request.get 'Fleetlocation' - response = Request.get 'Fleetlocation', {'Appid' => app_id} - return [] unless response.success? response.to_array(:fleetlocation_response, :vehicles, :vehicle).map do |vehicle| Vehicle.new(vehicle) end - end - end - end