Provide calculators for OVOV disciplines extracted from original Excel
Add this line to your application's Gemfile:
gem 'ovov-calculator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ovov-calculator
require 'calculator'
# pass performance to initialize
calc = OVOV::Calculator::BallThrow.new(200)
puts calc.calculate # => 2610.0
# pass performance using attr_accessor
calc = OVOV::Calculator::Swimming.new
calc.performance = 100
puts calc.calculate # => 510.0
# pass performance to run calculator
calc = OVOV::Calculator::Run.new
calc.performance = '3:00'
puts calc.calculate # => 1050.0
All calculators
OVOV::Calculator::BallThrow
OVOV::Calculator::Dribbling
OVOV::Calculator::JumpRope
OVOV::Calculator::LongJump
OVOV::Calculator::MedicineBall
OVOV::Calculator::PullUp
OVOV::Calculator::PushUp
OVOV::Calculator::Run
OVOV::Calculator::SitUp
OVOV::Calculator::Sprint
OVOV::Calculator::Swimming
OVOV::Calculator::TripleJump
- Fork it ( https://github.com/honzahovorka/ovov-calculator/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request