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