Skip to content

Bank Accounty goodness!#21

Open
digivava wants to merge 28 commits intoAda-C5:masterfrom
digivava:master
Open

Bank Accounty goodness!#21
digivava wants to merge 28 commits intoAda-C5:masterfrom
digivava:master

Conversation

@digivava
Copy link
Copy Markdown

@digivava digivava commented Mar 5, 2016

I left some instances of various account types down at the bottom of the code that you can tinker with if you'd like to play around with it in IRB.

Not really any optionals this time around, sadly... I basically had to restructure all my withdraw methods from scratch on the last day to get everything working the right way, so I spent all my remaining time on that.
(I even needed to draw out a TRIPLE VENN DIAGRAM on my scratch paper to figure out which methods should contain what, like middle school science class or something! It helped.)

…, instead of just outputting it for the user.
…than 1 for their initial balance, otherwise an ArgumentError will be thrown.
…file as an array of arrays, then iterates through and creates hashes from that, then puts those hashes into a new array which will be returned whenever the method is accessed.
…ed as an Account instance, THEN shovels into the account_info_array
… comments explaining my dilemma with self.find in plain old English
…ted the SavingsAccount class with a super'd initializer to account for the different minimum balance requirements.
…e SavingsAccount and CheckingAccount withdrawal methods from doing show_balance twice thanks to super
…...withdraw_using_checks gets all messed up so I'm reorganizing what functionality needs to be in each withdraw method
… up each time you call the method, and takes away a transaction fee when you try to use more than 3 checks
…od when only the transaction fee sends it over
…t class, then linked child classes to that. Cleaned up code and deleted all superfluous comments and methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant