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