Class: Runby::RunTypes::SlowTempoRun

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

Overview

The “slow tempo” pace roughly equates to your marathon pace.

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



8
9
10
# File 'lib/runby_pace/run_types/slow_tempo_run.rb', line 8

def description
  'Slow Tempo Run'
end

#explanationObject



12
13
14
# File 'lib/runby_pace/run_types/slow_tempo_run.rb', line 12

def explanation
  'The slow tempo run is an interval workout of 20-40 minutes per repetition. The pace roughly corresponds to that of your marathon race pace.'
end

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



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

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