Method: Hillpace::Route#climb
- Defined in:
- lib/hillpace/route.rb
#climb ⇒ Number
Measures the elevation difference from the start to the end of the route, in meters.
34 35 36 |
# File 'lib/hillpace/route.rb', line 34 def climb segments.inject(0) {|result, segment| result + segment.climb} end |