Sha256: bbe0ab429e2caaa1342e560d16fc6f9edb1f60d213e52eb97504bebe96773748

Contents?: true

Size: 732 Bytes

Versions: 23

Compression:

Stored size: 732 Bytes

Contents

# frozen_string_literal: true

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

23 entries across 23 versions & 1 rubygems

Version Path
runby_pace-0.62.7 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.62.5 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.62.4 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.62.3 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.62.2 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.2.50.111 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.61.160 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.61.159 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.61.158 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.61.157 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.61.156 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.61.155 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.61.154 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.61.153 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.152 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.151 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.150 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.149 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.148 lib/runby_pace/run_types/five_kilometer_race_run.rb
runby_pace-0.6.147 lib/runby_pace/run_types/five_kilometer_race_run.rb