Class: MudratProjector::TaxCalculator::Household
- Inherits:
-
Struct
- Object
- Struct
- MudratProjector::TaxCalculator::Household
- Defined in:
- lib/mudrat_projector/tax_calculator.rb
Instance Attribute Summary collapse
-
#exemptions ⇒ Object
Returns the value of attribute exemptions.
-
#filing_status ⇒ Object
Returns the value of attribute filing_status.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Household
constructor
A new instance of Household.
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
#exemptions ⇒ Object
Returns the value of attribute exemptions
16 17 18 |
# File 'lib/mudrat_projector/tax_calculator.rb', line 16 def exemptions @exemptions end |
#filing_status ⇒ Object
Returns the value of attribute filing_status
16 17 18 |
# File 'lib/mudrat_projector/tax_calculator.rb', line 16 def filing_status @filing_status end |