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