app/strategies/swimmer_training_pace_calculator.rb
# Calculate paces for 2000 meters continuous swimming
# The total amount should be devided by 20. The result is the A2 paces for 100 meters
#
Calculate paces for 2000 meters continuous swimming
The total amount should be devided by 20. The result is the A2 paces for 100 meters
Calculate paces for 2000 meters continuous swimming The total amount should be devided by 20 . The result is the A2 paces for 100 meters
def calculate_paces_2000
    @base_pace = calculate_base_pace_2000
    @parameters.each do |parameter|
      calculated_pace = compute_pace_timing(parameter[:percentage], parameter[:distance] / 100)
      @calculated_swimmer_paces.set_pace(parameter[:pace_type], parameter[:distance].to_s, calculated_pace)
    end
    @calculated_swimmer_paces
  end
def calculate_paces_2000 @base_pace = calculate_base_pace_2000 @parameters . each do | parameter | calculated_pace = compute_pace_timing ( parameter [ :percentage ] , parameter [ :distance ] / 100 ) @calculated_swimmer_paces . set_pace ( parameter [ :pace_type ] , parameter [ :distance ] . to_s , calculated_pace ) end @calculated_swimmer_paces end
Calculate paces for 2000 meters continuous swimming
The total amount should be devided by 20.
Calculate paces for 2000 meters continuous swimming The total amount should be devided by 20 .