lib/ratis/walkstop.rb in ratis-3.4.3 vs lib/ratis/walkstop.rb in ratis-3.5.0
- old
+ new
@@ -24,11 +24,10 @@
def self.where(conditions)
start_lat = conditions.delete :start_lat
start_long = conditions.delete :start_long
end_lat = conditions.delete :end_lat
end_long = conditions.delete :end_long
- app_id = conditions.delete(:app_id) || 'ratis-gem'
raise ArgumentError.new('You must provide a start_lat') unless start_lat
raise ArgumentError.new('You must provide a start_long') unless start_long
raise ArgumentError.new('You must provide an end_lat') unless end_lat
raise ArgumentError.new('You must provide an end_long') unless end_long
@@ -37,11 +36,10 @@
response = Request.get 'Walkstop',
'Startlat' => start_lat,
'Startlong' => start_long,
'Endlat' => end_lat,
- 'Endlong' => end_long,
- 'Appid' => app_id
+ 'Endlong' => end_long
Walkstop.new(response)
end
def to_hash