Sha256: 72f6717cf39ce3fc9d01987574238661d9906dc7bdc9b3a55467ec1e6bfee7e2

Contents?: true

Size: 701 Bytes

Versions: 13

Compression:

Stored size: 701 Bytes

Contents

module Runby
  module RunTypes
    # Your 5K race pace, which is also useful for running repetitions at this pace
    class FiveKilometerRaceRun < RunType
      def description
        '5K Race Pace'
      end

      def explanation
        'The 5K race (~3.1 miles) is an excellent gauge of overall fitness. Running repetitions of varying duration at 5K race pace can boost stroke volume, blood volume, mitochondrial and capillary density, etc.'
      end

      def lookup_pace(five_k_time, distance_units = :km)
        five_k_time = RunbyTime.new(five_k_time)
        pace = Pace.new(five_k_time / 5, '1km').convert_to(distance_units)
        PaceRange.new(pace, pace)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
runby_pace-0.6.143 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.142 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.141 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.140 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.139 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.137 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.136 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.133 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.132 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.131 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.130 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.128 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.127 lib/runby_pace/run_types/five_kilometer_race_run.rb