Skip to content

Juanchote/digital_origin

Repository files navigation

DigitalOrigin

USAGE

´bundle console´ to run the gem (didn't had enough time to thorize it).

´DigitalOrigin::Bank.new´ Creates a new random bank. optionals args name: Bank name

´<new_bank>.create_account´ Creates a new Account optional args money: account money owner: owner name

´.deposit(quantity)´ adds money to the account ´.substract(quantity)´ substract money from account

´.transfer(<other_account>.id, quantity)´ transfers money between accounts.

Tests may randomly fails when running InterBank transfer due to the 30% fails prob.

´.transfers´ shows all bank transfers ´.transfers´ shows all transfers from/to that account

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published