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