diff --git a/README.md b/README.md index d4c2773..c10b824 100644 --- a/README.md +++ b/README.md @@ -4,17 +4,17 @@ A bank app where you can make deposits and withdrawals, and see a statement of the transactions with dates and running balance. ## How to use - -### How to use the app -`irb` -`require './app.rb'` -> create a new account +``` +irb +require './app.rb' +``` +create a new account: `a = BankAccount.new` -> make a deposit, include amount and date +make a deposit, include amount and date: `a.deposit(1000, "14-01-2020")` -> make a withdrawal, include amount and date +make a withdrawal, include amount and date: `a.withdraw(10, "15-01-2020")` -> print a statement +print a statement: `a.print_statement` ### How to run the tests