Skip to content

honzahovorka/ovov-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OVOV::Calculator

Build Status Code Climate Coverage Status

Provide calculators for OVOV disciplines extracted from original Excel

Installation

Add this line to your application's Gemfile:

gem 'ovov-calculator'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ovov-calculator

Usage

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

Contributing

  1. Fork it ( https://github.com/honzahovorka/ovov-calculator/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

OVOV disciplines calculator gem

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages