Sha256: 6970acab95ab943d6585f9a429816661e55b1a1b3346ce457250a37053f553e6

Contents?: true

Size: 376 Bytes

Versions: 4

Compression:

Stored size: 376 Bytes

Contents

module GTFS
  class Realtime
    class Configuration
      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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gtfs-realtime-0.2.3 lib/gtfs/realtime/configuration.rb
gtfs-realtime-0.2.2 lib/gtfs/realtime/configuration.rb
gtfs-realtime-0.2.1 lib/gtfs/realtime/configuration.rb
gtfs-realtime-0.2.0 lib/gtfs/realtime/configuration.rb