Sha256: 6e4e2bed69408ea6c942e473b81e7ef25f12d13e12e67bd938a13ffe8c6fe2c8

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

require "google/transit/gtfs-realtime.pb"
require "gtfs"
require "sequel"

require "gtfs/realtime/configuration"

module GTFS
  class Realtime
    # This is a singleton object, so everything will be on the class level
    class << self
      attr_accessor :configuration

      def configuration
        @configuration ||= GTFS::Realtime::Configuration.new
      end

      def configure
        yield(configuration)

        load_static_feed!
        refresh_realtime_feed!
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gtfs-realtime-0.3.0 lib/gtfs/realtime.rb