Skip to content

Instantly share code, notes, and snippets.

@TikiTDO
Created November 5, 2012 17:10
Show Gist options
  • Save TikiTDO/4018373 to your computer and use it in GitHub Desktop.
Save TikiTDO/4018373 to your computer and use it in GitHub Desktop.
Stuff
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