Sha256: a555d10b43a81879b876583a01d1450dbf266afca655bd40b8eef40c892444e5
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
module RealEstateFinance class GrossRentalMultiplier attr_reader :market_value, :monthly_income def initialize(market_value, monthly_income) @market_value = market_value @monthly_income = monthly_income end def gross_rental_multiplier annual_gross_potential_income = sprintf("%0.02f", (@monthly_income * 12)).to_f calculation = @market_value.to_i / (annual_gross_potential_income) sprintf("%0.03f", calculation).to_f end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
real_estate_finance-0.1.0 | lib/real_estate_finance/gross_rental_multiplier.rb |