Class: RunbyPace::RunTypes::EasyRun
- Inherits:
-
RunbyPace::RunType
- Object
- RunbyPace::RunType
- RunbyPace::RunTypes::EasyRun
- Defined in:
- lib/runby_pace/run_types/easy_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
-
#initialize ⇒ EasyRun
constructor
A new instance of EasyRun.
- #pace(five_k_time) ⇒ Object
Methods inherited from RunbyPace::RunType
Constructor Details
#initialize ⇒ EasyRun
8 9 10 11 |
# File 'lib/runby_pace/run_types/easy_run.rb', line 8 def initialize @fast_pace_data = PaceData.new(GoldenPaces::fast[:'14:00'], GoldenPaces::fast[:'42:00'], 1.99) @slow_pace_data = PaceData.new(GoldenPaces::slow[:'14:00'], GoldenPaces::slow[:'42:00'], 1.35) 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/easy_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/easy_run.rb', line 6 def slow_pace_data @slow_pace_data end |