Module: Wits::Nodes
Constant Summary collapse
- NODES =
{ BEN2201: 'Benmore', HWB2201: 'Halfway Bush', HAY2201: 'Haywards', HLY2201: 'Huntly', INV2201: 'Invercargill', ISL2201: 'Islington', OTA2201: 'Otahuhu', STK2201: 'Stoke', SFD2201: 'Stratford', TUI1101: 'Tuai', WKM2201: 'Whakamaru' }.freeze
- NODE_NAMES =
NODES.invert.freeze
- SHORT_CODES =
BEN: 'BEN2201', HWB: 'HWB2201' ...
Hash[ NODES.keys.map { |node| node[0..2].to_sym } .zip(NODES.keys.map(&:to_s)) ].freeze
Instance Method Summary collapse
Instance Method Details
#node_names ⇒ Object
36 37 38 |
# File 'lib/wits/nodes.rb', line 36 def node_names NODE_NAMES end |
#node_short_codes ⇒ Object
40 41 42 |
# File 'lib/wits/nodes.rb', line 40 def node_short_codes SHORT_CODES end |
#nodes ⇒ Object
32 33 34 |
# File 'lib/wits/nodes.rb', line 32 def nodes NODES end |