lib/ratis/next_bus.rb in ratis-3.4.3 vs lib/ratis/next_bus.rb in ratis-3.5.0
- old
+ new
@@ -77,11 +77,10 @@
:long => trip[:realtime][:long] ))
end
def self.where(conditions)
stop_id = conditions.delete(:stop_id)
- app_id = conditions.delete(:app_id) || 'ratis-gem'
type = conditions.delete(:type) || 'N' # N for Next Bus
if datetime = conditions.delete(:datetime)
raise ArgumentError.new('If datetime supplied it should be a Time or DateTime instance, otherwise it defaults to Time.now') unless datetime.is_a?(DateTime) || datetime.is_a?(Time)
else
@@ -91,10 +90,9 @@
raise ArgumentError.new('You must provide a stop ID') unless stop_id
Ratis.all_conditions_used?(conditions)
response = Request.get 'Nextbus', {'Stopid' => stop_id,
- 'Appid' => app_id,
'Date' => datetime.strftime("%m/%d/%Y"),
'Time' => datetime.strftime("%H%M"),
'Type' => type }
NextBus.new(response)