Class: DateOfBirthForm

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

Overview

A form object for the date of birth question Allows for date's being represented using a hash for each (with keys day, month and year)

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from BaseForm

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

Instance Attribute Details

#date_of_birthDate

Returns The date of birth of the individual or the main person in a couple

Returns:

  • (Date)

    The date of birth of the individual or the main person in a couple


8
# File 'app/forms/date_of_birth_form.rb', line 8

attribute :date_of_birth, :strict_date

#partner_date_of_birthDate?

Returns The date of birth of the partner in a couple

Returns:

  • (Date, nil)

    The date of birth of the partner in a couple


11
# File 'app/forms/date_of_birth_form.rb', line 11

attribute :partner_date_of_birth, :strict_date

Class Method Details

.typeSymbol

The type of the form

Returns:

  • (Symbol)

    :date_of_birth


32
33
34
# File 'app/forms/date_of_birth_form.rb', line 32

def self.type
  :date_of_birth
end