Module: Bankroll
- Defined in:
- lib/bankroll.rb,
lib/bankroll/types.rb,
lib/bankroll/decimal.rb,
lib/bankroll/payment.rb,
lib/bankroll/version.rb,
lib/bankroll/callable.rb,
lib/bankroll/future_value.rb,
lib/bankroll/interest_rate.rb,
lib/bankroll/present_value.rb,
lib/bankroll/total_periods.rb,
lib/bankroll/annuity_factor.rb,
lib/bankroll/unpaid_balance.rb,
lib/bankroll/interest_payment.rb,
lib/bankroll/cumulative_interest.rb,
lib/bankroll/amortization_schedule.rb
Defined Under Namespace
Modules: Callable, Types
Classes: AmortizationSchedule, AnnuityFactor, CumulativeInterest, Decimal, Error, FutureValue, InterestPayment, InterestRate, Payment, PresentValue, TotalPeriods, UnpaidBalance
Constant Summary
collapse
- ZERO =
Decimal["0"].freeze
- ONE =
Decimal["1"].freeze
- VERSION =
"0.1.1"
Class Method Summary
collapse
Class Method Details
.amortization_schedule(**kwargs) ⇒ Object
66
67
68
|
# File 'lib/bankroll.rb', line 66
def self.amortization_schedule(**kwargs)
AmortizationSchedule.call(**kwargs)
end
|
.annuity_factor(**kwargs) ⇒ Object
58
59
60
|
# File 'lib/bankroll.rb', line 58
def self.annuity_factor(**kwargs)
AnnuityFactor.call(**kwargs)
end
|
.cumulative_interest(**kwargs) ⇒ Object
54
55
56
|
# File 'lib/bankroll.rb', line 54
def self.cumulative_interest(**kwargs)
CumulativeInterest.call(**kwargs)
end
|
.future_value(**kwargs) ⇒ Object
50
51
52
|
# File 'lib/bankroll.rb', line 50
def self.future_value(**kwargs)
FutureValue.call(**kwargs)
end
|
.interest_rate(**kwargs) ⇒ Object
38
39
40
|
# File 'lib/bankroll.rb', line 38
def self.interest_rate(**kwargs)
InterestRate.call(**kwargs)
end
|
.payment(**kwargs) ⇒ Object
34
35
36
|
# File 'lib/bankroll.rb', line 34
def self.payment(**kwargs)
Payment.call(**kwargs)
end
|
.present_value(**kwargs) ⇒ Object
46
47
48
|
# File 'lib/bankroll.rb', line 46
def self.present_value(**kwargs)
PresentValue.call(**kwargs)
end
|
.total_periods(**kwargs) ⇒ Object
62
63
64
|
# File 'lib/bankroll.rb', line 62
def self.total_periods(**kwargs)
TotalPeriods.call(**kwargs)
end
|
.unpaid_balance(**kwargs) ⇒ Object
42
43
44
|
# File 'lib/bankroll.rb', line 42
def self.unpaid_balance(**kwargs)
UnpaidBalance.call(**kwargs)
end
|