-
Notifications
You must be signed in to change notification settings - Fork 0
Home
becc-mu edited this page Dec 6, 2018
·
4 revisions
Ruby is used to write this App and Rspec for testing, and RuboCop for linting.
- To use irb or pry type
require './lib/statement'

- Create account as shown in the screenshot below
account = Account.new - Deposit
account.credit(1000) - Withdraw
account.debit(500) - To view statement
print account.print_statement

- Cannot print statement If create account
require './lib/account'ErrorUninitialized constant Account::Stateement - Cannot withdraw amount more than the balance error
Insufficient funds - Amount input must be numbers error
You must enter a number
