My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class PaymentSchedule

def initialize
@payments = Array.new
@index = 0
end

def addPayment(payment)
@payments[@index] = payment
@index = @index + 1
end

def getPayments
@payments
end

def setTotalPrinciple(totalPrinciple)
@totalPrinciple = totalPrinciple
end

def setTotalInterest(totalInterest)
@totalInterest = totalInterest
end

def totalPrinciple
@totalPrinciple
end

def totalInterest
@totalInterest
end

def totalPayments
@totalInterest + @totalPrinciple
end

end

Change log

r54 by pragkirk on Apr 8, 2009   Diff
Initial Checkin
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 632 bytes, 37 lines

File properties

svn:executable
Powered by Google Project Hosting