Class: NumberOfChildrenForm

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

Overview

A form object for the number of children

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 number of children

Returns:

  • (Integer)

    The number of children


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

attribute :number_of_children, :strict_integer

Class Method Details

.typeSymbol

The type of the form

Returns:

  • (Symbol)

    :number_of_children


12
13
14
# File 'app/forms/number_of_children_form.rb', line 12

def self.type
  :number_of_children
end