Class: RunbyPace::RunTypes::FastTempoRun
- Inherits:
-
RunbyPace::RunType
- Object
- RunbyPace::RunType
- RunbyPace::RunTypes::FastTempoRun
- Defined in:
- lib/runby_pace/run_types/fast_tempo_run.rb
Defined Under Namespace
Classes: GoldenPaces
Instance Attribute Summary collapse
-
#fast_pace_data ⇒ Object
readonly
Returns the value of attribute fast_pace_data.
-
#slow_pace_data ⇒ Object
readonly
Returns the value of attribute slow_pace_data.
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize ⇒ FastTempoRun
constructor
A new instance of FastTempoRun.
- #pace(five_k_time, distance_units = :km) ⇒ Object
Constructor Details
#initialize ⇒ FastTempoRun
Returns a new instance of FastTempoRun.
12 13 14 15 |
# File 'lib/runby_pace/run_types/fast_tempo_run.rb', line 12 def initialize @fast_pace_data = PaceData.new(GoldenPaces::fast[:'14:00'], GoldenPaces::fast[:'42:00'], 4.025) @slow_pace_data = @fast_pace_data end |
Instance Attribute Details
#fast_pace_data ⇒ Object (readonly)
Returns the value of attribute fast_pace_data.
6 7 8 |
# File 'lib/runby_pace/run_types/fast_tempo_run.rb', line 6 def fast_pace_data @fast_pace_data end |
#slow_pace_data ⇒ Object (readonly)
Returns the value of attribute slow_pace_data.
6 7 8 |
# File 'lib/runby_pace/run_types/fast_tempo_run.rb', line 6 def slow_pace_data @slow_pace_data end |
Instance Method Details
#description ⇒ Object
8 9 10 |
# File 'lib/runby_pace/run_types/fast_tempo_run.rb', line 8 def description 'Fast Tempo Run' end |