Class: TotalIncomeForm

Inherits:
BaseForm show all
Defined in:
app/forms/total_income_form.rb

Overview

A form object for the total income

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from BaseForm

attribute?, #export, new_ignoring_extras, #type, #valid?

Instance Attribute Details

#feeInteger

Returns The total income

Returns:

  • (Integer)

    The total income


5
# File 'app/forms/total_income_form.rb', line 5

attribute :total_income, :strict_integer

Class Method Details

.typeSymbol

The type of the form

Returns:

  • (Symbol)

    :total_income


14
15
16
# File 'app/forms/total_income_form.rb', line 14

def self.type
  :total_income
end