Class: RunbyPace::RunTypes::FastTempoRun

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

Instance Attribute Summary

Attributes inherited from TempoRun

#fast_pace_data, #slow_pace_data

Instance Method Summary collapse

Methods inherited from TempoRun

#initialize

Constructor Details

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

Instance Method Details

#descriptionObject



6
7
8
# File 'lib/runby_pace/run_types/fast_tempo_run.rb', line 6

def description
  'Fast Tempo Run'
end

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



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

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