Created
November 5, 2012 17:10
-
-
Save TikiTDO/4018373 to your computer and use it in GitHub Desktop.
Stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Loan | |
def initialize(amount, term_in_months, rate) | |
@principle = amount | |
@term = term_in_months | |
@rate = rate | |
# Calcluate Initial Interest | |
@interest = some_formula | |
end | |
def pay_amount(amount) | |
# meh | |
end | |
def pay_principle(amount) | |
# Do crap here | |
end | |
def pay_interest(amount) | |
# Do other crap here | |
end | |
def should_i_invest | |
# code | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment