class OVOV::Calculator::JumpRope

Constants

POOR_PERFORMANCE

Public Instance Methods

calculate() click to toggle source
# File lib/calculator/disciplines/jump_rope.rb, line 6
def calculate
  return 0 if @performance <= POOR_PERFORMANCE

  @points = ((@performance - 27) / 3) * 10
end