Class: Mormon::Weight

Inherits:
Object
  • Object
show all
Defined in:
lib/mormon/weight.rb

Class Method Summary collapse

Class Method Details

.get(transport, way_type) ⇒ Object



28
29
30
# File 'lib/mormon/weight.rb', line 28

def self.get(transport, way_type)
  @weightings[way_type] && @weightings[way_type][transport]
end

.weightingsObject



24
25
26
# File 'lib/mormon/weight.rb', line 24

def self.weightings
  @weightings
end