Class: CTA::Transfer

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

Instance Method Details

#from_stopCTA::Stop

The stop to transfer from

Returns:


10
# File 'lib/cta_redux/models/transfer.rb', line 10

many_to_one :from_stop, :class => 'CTA::Stop', :key => :from_stop_id

#from_stop_idInteger

Returns:

  • (Integer)

# File 'lib/cta_redux/models/transfer.rb', line 16

#to_stopCTA::Stop

The stop to transfer to

Returns:


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

many_to_one :to_stop, :class => 'CTA::Stop', :key => :to_stop_id

#to_stop_idInteger

Returns:

  • (Integer)

# File 'lib/cta_redux/models/transfer.rb', line 16

#transfer_typeInteger

Returns:

  • (Integer)

# File 'lib/cta_redux/models/transfer.rb', line 16