MudratProjector
Simple financial projection built in ruby.
include MudratProjector
projector = Projector.new from: "1/1/2000"
projector.add_account :checking, type: :asset
projector.add_account :uncle_vinnie, type: :revenue
projector.add_transaction(
date: "7/4/2000",
debit: { amount: 6000, account_id: :checking },
credit: { amount: 6000, account_id: :uncle_vinnie }
)
projector.project to: "12/31/2000"
assert_equal 5000, projector.account_balance(:checking)
Installation
Add this line to your application's Gemfile:
gem 'mudrat_projector'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mudrat_projector
Usage
TODO: Write usage instructions here
Contributing
- Fork it
- 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 new Pull Request