Class: Runby::RunTypes::TenKilometerRaceRun
- Inherits:
-
Runby::RunType
- Object
- Runby::RunType
- Runby::RunTypes::TenKilometerRaceRun
- Defined in:
- lib/runby_pace/run_types/ten_kilometer_race_run.rb
Overview
Your 10K race pace, which is also useful for running repetitions at this pace
Instance Method Summary collapse
- #description ⇒ Object
- #explanation ⇒ Object
- #lookup_pace(five_k_time, distance_units = :km) ⇒ Object
Instance Method Details
#description ⇒ Object
7 8 9 |
# File 'lib/runby_pace/run_types/ten_kilometer_race_run.rb', line 7 def description '10K Race Pace' end |
#explanation ⇒ Object
11 12 13 |
# File 'lib/runby_pace/run_types/ten_kilometer_race_run.rb', line 11 def explanation 'Repetitions ran at 10K race pace (10 km is about 6.2 miles) are like 5K pace repetitions, but less intense. They elicit many of the same benefits and help increase speed in races from the 10K to the half-marathon.' end |
#lookup_pace(five_k_time, distance_units = :km) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/runby_pace/run_types/ten_kilometer_race_run.rb', line 15 def lookup_pace(five_k_time, distance_units = :km) five_k_time = RunbyTime.new(five_k_time) ten_k_time = RunMath.predict_race_time('5K', five_k_time, '10K') pace = Pace.new(ten_k_time / 10, '1km').convert_to(distance_units) PaceRange.new(pace, pace) end |