Class: Runby::RunTypes::FiveKilometerRaceRun

Inherits:
Runby::RunType show all
Defined in:
lib/runby_pace/run_types/five_kilometer_race_run.rb

Overview

Your 5K race pace, which is also useful for running repetitions at this pace

Instance Method Summary collapse

Instance Method Details

#descriptionObject


7
8
9
# File 'lib/runby_pace/run_types/five_kilometer_race_run.rb', line 7

def description
  '5K Race Pace'
end

#explanationObject


11
12
13
# File 'lib/runby_pace/run_types/five_kilometer_race_run.rb', line 11

def explanation
  'The 5K race (~3.1 miles) is an excellent gauge of overall fitness. Running repetitions of varying duration at 5K race pace can boost stroke volume, blood volume, mitochondrial and capillary density, etc.'
end

#lookup_pace(five_k_time, distance_units = :km) ⇒ Object


15
16
17
18
19
# File 'lib/runby_pace/run_types/five_kilometer_race_run.rb', line 15

def lookup_pace(five_k_time, distance_units = :km)
  five_k_time = RunbyTime.new(five_k_time)
  pace = Pace.new(five_k_time / 5, '1km').convert_to(distance_units)
  PaceRange.new(pace, pace)
end