Sha256: 45fca21107c5bca56d2de42e9eaf4505408cb66e6f75d4dc10c29d7d5a493542
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 Bytes
Contents
module GTFS class Realtime class Trip < GTFS::Realtime::Model belongs_to :route has_many :stop_times has_many :stops, through: :stop_times has_many :calendar_dates, primary_key: :service_id, foreign_key: :service_id has_many :shapes, primary_key: :shape_id, foreign_key: :id def active?(date) calendar_dates.where(exception_type: GTFS::Realtime::CalendarDate::ADDED, date: date).any? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gtfs-realtime-0.4.0 | lib/gtfs/realtime/trip.rb |