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



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

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

.weightingsObject



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

def self.weightings
  @weightings
end