lib/gtfs/realtime/configuration.rb in gtfs-realtime-0.1.0 vs lib/gtfs/realtime/configuration.rb in gtfs-realtime-0.2.0

- old
+ new

@@ -1,7 +1,14 @@ module GTFS class Realtime class Configuration - attr_accessor :static_feed, :trip_updates_feed, :vehicle_positions_feed, :service_alerts_feed + attr_accessor :static_feed, :trip_updates_feed, :vehicle_positions_feed, :service_alerts_feed, :database_path + + def database_path=(new_path) + @database_path = new_path + + # reinitialize the database with the new path + GTFS::Realtime::Database.path = database_path + end end end end