Class: LoanCreator::Linear
Constant Summary
Constants inherited from Common
Common::OPTIONAL_ATTRIBUTES, Common::PERIODS_IN_MONTHS, Common::REQUIRED_ATTRIBUTES
Constants included from BorrowerTimetable
BorrowerTimetable::BORROWER_FINANCIAL_ATTRIBUTES
Instance Method Summary collapse
Methods inherited from Common
bigd, #bigd, #initialize, #periodic_interests_rate, #periodic_interests_rate_percentage
Methods included from BorrowerTimetable
Constructor Details
This class inherits a constructor from LoanCreator::Common
Instance Method Details
#lender_timetable ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/loan_creator/linear.rb', line 4 def = reset_current_term @crd_end_of_period = amount if term_zero? compute_term_zero << current_term end duration_in_periods.times do |idx| @last_period = last_period?(idx) @deferred_period = idx < deferred_in_periods compute_current_term(idx) << current_term end end |