class LoanCreator::InFine
Public Instance Methods
lender_timetable()
click to toggle source
InFine
is the same as a Linear
loan with (duration - 1) deferred periods. Thus we're generating a Linear
loan instead of rewriting already existing code.
# File lib/loan_creator/in_fine.rb, line 5 def lender_timetable options = @options.merge(deferred_in_periods: duration_in_periods - 1) LoanCreator::Linear.new(**options).lender_timetable end