Class: Runby::RunTypes::MileRaceRun
- Inherits:
-
Runby::RunType
- Object
- Runby::RunType
- Runby::RunTypes::MileRaceRun
- Defined in:
- lib/runby_pace/run_types/mile_race_run.rb
Overview
Your mile 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/mile_race_run.rb', line 7 def description 'Mile Race Pace' end |
#explanation ⇒ Object
11 12 13 |
# File 'lib/runby_pace/run_types/mile_race_run.rb', line 11 def explanation 'Repetitions run at a pace you would use to race one mile can increase the stroke volume of your heart, strengthen your lungs, increase the number of capillaries around your intermediate and fast twitch fibers, and increase mitochondrial densities around the same.' end |
#lookup_pace(five_k_time, distance_units = :km) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/runby_pace/run_types/mile_race_run.rb', line 15 def lookup_pace(five_k_time, distance_units = :km) five_k_time = RunbyTime.new(five_k_time) mile = Distance.new('1 mile') mile_time = RunMath.predict_race_time('5K', five_k_time, mile) pace = Pace.new(mile_time, mile).convert_to(distance_units) PaceRange.new(pace, pace) end |