Class: CTA::StopTime

Inherits:
Sequel::Model
  • Object
show all
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

Instance Method Details

#arrival_timeString

Note:

This is a string because ruby has no concept of storing a time without a date

Returns:

  • (String)


34
# File 'lib/cta_redux/models/stop_time.rb', line 34

alias_method :sequence, :stop_sequence

#departure_timeString

Note:

This is a string because ruby has no concept of storing a time without a date

Returns:

  • (String)


34
# File 'lib/cta_redux/models/stop_time.rb', line 34

alias_method :sequence, :stop_sequence

#pickup_typeInteger

Returns:

  • (Integer)


34
# File 'lib/cta_redux/models/stop_time.rb', line 34

alias_method :sequence, :stop_sequence

#shape_dist_traveledInteger Also known as: distance, distance_traveled

Returns:

  • (Integer)


34
# File 'lib/cta_redux/models/stop_time.rb', line 34

alias_method :sequence, :stop_sequence

#stopCTA::Stop

Returns The CTA::Stop associated with this CTA::StopTime.

Returns:



14
# File 'lib/cta_redux/models/stop_time.rb', line 14

many_to_one :stop, :key => :stop_id

#stop_headsignString Also known as: headsign

Returns:

  • (String)


34
# File 'lib/cta_redux/models/stop_time.rb', line 34

alias_method :sequence, :stop_sequence

#stop_idInteger

Returns:

  • (Integer)


34
# File 'lib/cta_redux/models/stop_time.rb', line 34

alias_method :sequence, :stop_sequence

#stop_sequenceInteger Also known as: sequence

Returns:

  • (Integer)


34
# File 'lib/cta_redux/models/stop_time.rb', line 34

alias_method :sequence, :stop_sequence

#tripCTA::Trip

Returns The Trip associated with this CTA::StopTime.

Returns:



11
# File 'lib/cta_redux/models/stop_time.rb', line 11

many_to_one :trip, :key => :trip_id

#trip_idInteger

Returns:

  • (Integer)


34
# File 'lib/cta_redux/models/stop_time.rb', line 34

alias_method :sequence, :stop_sequence