Sha256: ecbc0d38e6298ee89701f631eff947992b19a4982a8970167f71a0c3abe9d6f7

Contents?: true

Size: 463 Bytes

Versions: 10

Compression:

Stored size: 463 Bytes

Contents

module RunbyPace

  module RunTypes

    class LongRun < RunType
      attr_reader :slow_pace_data, :fast_pace_data

      def initialize
        @slow_pace_data = PaceData.new('04:39', '11:53', 1.55)
        @fast_pace_data = PaceData.new('04:00', '10:32', 1.99)
      end

      def pace(five_k_time)
        fast = @fast_pace_data.calc(five_k_time)
        slow = @slow_pace_data.calc(five_k_time)
        PaceRange.new(fast, slow)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
runby_pace-0.2.36 lib/runby_pace/run_types/long_run.rb
runby_pace-0.2.35 lib/runby_pace/run_types/long_run.rb
runby_pace-0.2.34 lib/runby_pace/run_types/long_run.rb
runby_pace-0.2.33 lib/runby_pace/run_types/long_run.rb
runby_pace-0.2.32 lib/runby_pace/run_types/long_run.rb
runby_pace-0.2.31 lib/runby_pace/run_types/long_run.rb
runby_pace-0.2.28 lib/runby_pace/run_types/long_run.rb
runby_pace-0.2.22 lib/runby_pace/run_types/long_run.rb
runby_pace-0.2.1 lib/runby_pace/run_types/long_run.rb
runby_pace-0.2.0 lib/runby_pace/run_types/long_run.rb