Class: Field::PersonType

Inherits:
Base
  • Object
show all
Defined in:
lib/field/person_type.rb

Instance Attribute Summary

Attributes inherited from Base

#fieldset, #form, #name, #value

Instance Method Summary collapse

Methods inherited from Base

#add_attributes, #add_validations, #form?, #initialize

Constructor Details

This class inherits a constructor from Field::Base

Instance Method Details

#attributeObject



5
6
7
# File 'lib/field/person_type.rb', line 5

def attribute
  ::Attribute::PersonType
end

#outputObject



9
10
11
# File 'lib/field/person_type.rb', line 9

def output
  ::PersonType.new(value).description
end