Class: CTA::Transfer
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- CTA::Transfer
- Defined in:
- lib/cta_redux/models/transfer.rb
Overview
Note:
Current columns: [:from_stop_id, :to_stop_id, :transfer_type]
A Sequel::Model. This corresponds to transfers.txt in the GTFS feed, though the CTA does not fully implement the standard.
Instance Method Summary collapse
-
#from_stop ⇒ CTA::Stop
The stop to transfer from.
- #from_stop_id ⇒ Integer
-
#to_stop ⇒ CTA::Stop
The stop to transfer to.
- #to_stop_id ⇒ Integer
- #transfer_type ⇒ Integer
Instance Method Details
#from_stop ⇒ CTA::Stop
The stop to transfer from
10 |
# File 'lib/cta_redux/models/transfer.rb', line 10 many_to_one :from_stop, :class => 'CTA::Stop', :key => :from_stop_id |
#from_stop_id ⇒ Integer
|
# File 'lib/cta_redux/models/transfer.rb', line 16
|
#to_stop ⇒ CTA::Stop
The stop to transfer to
14 |
# File 'lib/cta_redux/models/transfer.rb', line 14 many_to_one :to_stop, :class => 'CTA::Stop', :key => :to_stop_id |
#to_stop_id ⇒ Integer
|
# File 'lib/cta_redux/models/transfer.rb', line 16
|
#transfer_type ⇒ Integer
|
# File 'lib/cta_redux/models/transfer.rb', line 16
|