Method: Hillpace::Route#climb

Defined in:
lib/hillpace/route.rb

#climbNumber

Measures the elevation difference from the start to the end of the route, in meters.

Returns:

  • (Number)


34
35
36
# File 'lib/hillpace/route.rb', line 34

def climb
  segments.inject(0) {|result, segment| result + segment.climb}
end