Sha256: e33141660e28ab0ac98dca0c377a29cc52fef89571de40e55b25489d33c3cafc

Contents?: true

Size: 400 Bytes

Versions: 13

Compression:

Stored size: 400 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

13 entries across 13 versions & 1 rubygems

Version Path
loan_creator-0.6.1.1 lib/loan_creator/in_fine.rb
loan_creator-0.12.1 lib/loan_creator/in_fine.rb
loan_creator-0.12.0 lib/loan_creator/in_fine.rb
loan_creator-0.11.0 lib/loan_creator/in_fine.rb
loan_creator-0.10.0 lib/loan_creator/in_fine.rb
loan_creator-0.9.1 lib/loan_creator/in_fine.rb
loan_creator-0.9.0 lib/loan_creator/in_fine.rb
loan_creator-0.8.2 lib/loan_creator/in_fine.rb
loan_creator-0.8.1 lib/loan_creator/in_fine.rb
loan_creator-0.8.0 lib/loan_creator/in_fine.rb
loan_creator-0.7.1 lib/loan_creator/in_fine.rb
loan_creator-0.7.0 lib/loan_creator/in_fine.rb
loan_creator-0.6.3.1 lib/loan_creator/in_fine.rb