Module: GtfsEngine

Extended by:
ActiveSupport::Autoload
Defined in:
lib/gtfs_engine/engine.rb,
lib/gtfs_engine.rb,
lib/gtfs_engine/sources.rb,
lib/gtfs_engine/version.rb,
lib/gtfs_engine/exceptions.rb,
app/models/gtfs_engine/stop.rb,
app/models/gtfs_engine/trip.rb,
app/models/gtfs_engine/route.rb,
app/models/gtfs_engine/shape.rb,
app/models/gtfs_engine/agency.rb,
app/models/gtfs_engine/calendar.rb,
app/models/gtfs_engine/data_set.rb,
app/models/gtfs_engine/transfer.rb,
app/models/gtfs_engine/fare_rule.rb,
app/models/gtfs_engine/feed_info.rb,
app/models/gtfs_engine/frequency.rb,
app/models/gtfs_engine/stop_time.rb,
app/models/gtfs_engine/calendar_date.rb,
app/helpers/gtfs_engine/fields_helper.rb,
app/models/gtfs_engine/fare_attribute.rb,
app/controllers/gtfs_engine/stops_controller.rb,
app/controllers/gtfs_engine/trips_controller.rb,
app/helpers/gtfs_engine/default_views_helper.rb,
app/controllers/gtfs_engine/routes_controller.rb,
app/controllers/gtfs_engine/shapes_controller.rb,
app/controllers/gtfs_engine/agencies_controller.rb,
app/controllers/gtfs_engine/calendars_controller.rb,
app/controllers/gtfs_engine/data_sets_controller.rb,
app/controllers/gtfs_engine/transfers_controller.rb,
app/controllers/gtfs_engine/fare_rules_controller.rb,
app/controllers/gtfs_engine/feed_infos_controller.rb,
app/controllers/gtfs_engine/stop_times_controller.rb,
app/controllers/gtfs_engine/application_controller.rb,
app/controllers/gtfs_engine/frequencies_controller.rb,
app/controllers/gtfs_engine/calendar_dates_controller.rb,
app/controllers/gtfs_engine/fare_attributes_controller.rb

Overview

This file is part of the KNOWtime server.

The KNOWtime server is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The KNOWtime server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with the KNOWtime server. If not, see <www.gnu.org/licenses/>.

Defined Under Namespace

Modules: Concerns, DefaultViewsHelper, FieldsHelper, Version Classes: AgenciesController, Agency, ApplicationController, Calendar, CalendarDate, CalendarDatesController, CalendarsController, DataSet, DataSetsController, Engine, FareAttribute, FareAttributesController, FareRule, FareRulesController, FeedInfo, FeedInfosController, FrequenciesController, Frequency, JsonResponder, Route, RoutesController, Shape, ShapesController, Sources, Stop, StopTime, StopTimesController, StopsController, Transfer, TransfersController, Trip, TripsController, UnknownFilters

Constant Summary collapse

Error =
Class.new StandardError
DateFormatError =
Class.new StandardError

Class Method Summary collapse

Class Method Details

.sources(&block) ⇒ Object



28
29
30
31
# File 'lib/gtfs_engine.rb', line 28

def sources(&block)
  @sources ||= Sources.new GtfsReader.config
  block.call @sources
end