Class: CTA::StopTime
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- CTA::StopTime
- Defined in:
- lib/cta_redux/models/stop_time.rb
Overview
Note:
Current columns: [:trip_id, :arrival_time, :departure_time, :stop_id, :stop_sequence, :stop_headsign, :pickup_type, :shape_dist_traveled]
A Sequel::Model. This corresponds to stop_times.txt in the GTFS feed, though the CTA does not fully implement the standard. This object can give you the scheduled times that a vehicle should stop along a Route (or really, a Trip if you’re being specific). It can also function as somewhat of a ‘join table’ between trips and stops.
Instance Method Summary collapse
- #arrival_time ⇒ String
- #departure_time ⇒ String
- #pickup_type ⇒ Integer
- #shape_dist_traveled ⇒ Integer (also: #distance, #distance_traveled)
- #stop ⇒ CTA::Stop
- #stop_headsign ⇒ String (also: #headsign)
- #stop_id ⇒ Integer
- #stop_sequence ⇒ Integer (also: #sequence)
- #trip ⇒ CTA::Trip
- #trip_id ⇒ Integer
Instance Method Details
#arrival_time ⇒ String
Note:
This is a string because ruby has no concept of storing a time without a date
34 |
# File 'lib/cta_redux/models/stop_time.rb', line 34 alias_method :sequence, :stop_sequence |
#departure_time ⇒ String
Note:
This is a string because ruby has no concept of storing a time without a date
34 |
# File 'lib/cta_redux/models/stop_time.rb', line 34 alias_method :sequence, :stop_sequence |
#pickup_type ⇒ Integer
34 |
# File 'lib/cta_redux/models/stop_time.rb', line 34 alias_method :sequence, :stop_sequence |
#shape_dist_traveled ⇒ Integer Also known as: distance, distance_traveled
34 |
# File 'lib/cta_redux/models/stop_time.rb', line 34 alias_method :sequence, :stop_sequence |
#stop ⇒ CTA::Stop
Returns The CTA::Stop associated with this CTA::StopTime.
14 |
# File 'lib/cta_redux/models/stop_time.rb', line 14 many_to_one :stop, :key => :stop_id |
#stop_headsign ⇒ String Also known as: headsign
34 |
# File 'lib/cta_redux/models/stop_time.rb', line 34 alias_method :sequence, :stop_sequence |
#stop_id ⇒ Integer
34 |
# File 'lib/cta_redux/models/stop_time.rb', line 34 alias_method :sequence, :stop_sequence |
#stop_sequence ⇒ Integer Also known as: sequence
34 |
# File 'lib/cta_redux/models/stop_time.rb', line 34 alias_method :sequence, :stop_sequence |
#trip ⇒ CTA::Trip
Returns The Trip associated with this CTA::StopTime.
11 |
# File 'lib/cta_redux/models/stop_time.rb', line 11 many_to_one :trip, :key => :trip_id |
#trip_id ⇒ Integer
34 |
# File 'lib/cta_redux/models/stop_time.rb', line 34 alias_method :sequence, :stop_sequence |