Class: MudratProjector::TaxCalculator::Household

Inherits:
Struct
  • Object
show all
Defined in:
lib/mudrat_projector/tax_calculator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Household

Returns a new instance of Household.



17
18
19
20
21
22
# File 'lib/mudrat_projector/tax_calculator.rb', line 17

def initialize *args
  super
  unless HOUSEHOLD_TYPES.include? filing_status
    raise "Invalid filing status #{filing_status.inspect}"
  end
end

Instance Attribute Details

#exemptionsObject

Returns the value of attribute exemptions

Returns:

  • (Object)

    the current value of exemptions



16
17
18
# File 'lib/mudrat_projector/tax_calculator.rb', line 16

def exemptions
  @exemptions
end

#filing_statusObject

Returns the value of attribute filing_status

Returns:

  • (Object)

    the current value of filing_status



16
17
18
# File 'lib/mudrat_projector/tax_calculator.rb', line 16

def filing_status
  @filing_status
end