Class: Runby::RunTypes::FastTempoRun

Inherits:
TempoRun show all
Defined in:
lib/runby_pace/run_types/fast_tempo_run.rb

Overview

The “fast tempo” pace roughly equates to your half-marathon pace.

It's a pace you could maintain for about an hour, if pressed.

Instance Attribute Summary

Attributes inherited from TempoRun

#fast_pace_calculator, #slow_pace_calculator

Instance Method Summary collapse

Methods inherited from TempoRun

#initialize

Constructor Details

This class inherits a constructor from Runby::RunTypes::TempoRun

Instance Method Details

#descriptionObject


9
10
11
# File 'lib/runby_pace/run_types/fast_tempo_run.rb', line 9

def description
  'Fast Tempo Run'
end

#explanationObject


13
14
15
# File 'lib/runby_pace/run_types/fast_tempo_run.rb', line 13

def explanation
  'The fast tempo run is an interval workout of 15-25 minutes per repetition. The pace roughly corresponds to that of your half-marathon race pace.'
end

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


17
18
19
20
# File 'lib/runby_pace/run_types/fast_tempo_run.rb', line 17

def lookup_pace(five_k_time, distance_units = :km)
  fast = @fast_pace_calculator.calc(five_k_time, distance_units)
  PaceRange.new(fast, fast)
end