Class: FactoryForm::Email
- Inherits:
-
ShortAnswer
- Object
- Field
- ShortAnswer
- FactoryForm::Email
- Defined in:
- lib/factoryform/email.rb
Instance Attribute Summary
Attributes inherited from Field
#field_type, #hint, #id, #label, #required, #unique, #validation_format
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Email
constructor
A new instance of Email.
Constructor Details
#initialize(options = {}) ⇒ Email
Returns a new instance of Email.
3 4 5 6 7 8 |
# File 'lib/factoryform/email.rb', line 3 def initialize(={}) [:field_type] = "short_answer" super() @validation_format = "email" # extra attributes for ShortAnswer end |