Sha256: 79abeca11aaf51c71e002bf390f1b5f48c691c16091d0100c0c820814fcd48c6

Contents?: true

Size: 398 Bytes

Versions: 3

Compression:

Stored size: 398 Bytes

Contents

module LoanCreator
  class InFine < LoanCreator::Common
    # 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.
    def lender_timetable
      options = @options.merge(deferred_in_periods: duration_in_periods - 1)
      LoanCreator::Linear.new(options).lender_timetable
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loan_creator-0.6.2 lib/loan_creator/in_fine.rb
loan_creator-0.5.0 lib/loan_creator/in_fine.rb
loan_creator-0.6.1 lib/loan_creator/in_fine.rb