Sha256: bcc0cc307cee0ea9ce4bb4102678f0fa590d0212d18dfbb07da10c272c89a1a3
Contents?: true
Size: 777 Bytes
Versions: 6
Compression:
Stored size: 777 Bytes
Contents
module RunbyPace module RunTypes class FastTempoRun < RunType attr_reader :slow_pace_data, :fast_pace_data def description 'Fast Tempo Run' end def initialize @fast_pace_data = PaceData.new(GoldenPaces::fast[:'14:00'], GoldenPaces::fast[:'42:00'], 4.025) @slow_pace_data = @fast_pace_data end def pace(five_k_time, distance_units = :km) fast = @fast_pace_data.calc(five_k_time, distance_units) slow = fast PaceRange.new(fast, slow) end class GoldenPaces def self.fast { '14:00': '03:07', '15:00': '03:20', '20:00': '04:21', '25:00': '05:20', '30:00': '06:19', '35:00':'07:16', '40:00':'08:12', '42:00':'08:35'} end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems