PoC of a simple accounting system using Clean Architecture
Add this line to your application's Gemfile:
gem 'lannister'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lannister
Print money (adds money to an account):
Lannister.print_money(account_id: 42)
Get balance:
Lannister.get_balance(account_id: 42)
Transfer money:
Lannister.transfer_money(source_account_id: 42,
destination_account_id: 22,
amount: 100_000)
This gem uses a trade repository that must answer to: