Class: FactoryForm::ShortAnswer

Inherits:
Field
  • Object
show all
Defined in:
lib/factoryform/short_answer.rb

Direct Known Subclasses

DateAnswer, Email, Number, TimeAnswer, Url

Instance Attribute Summary

Attributes inherited from Field

#field_type, #hint, #id, #label, #required, #unique, #validation_format

Instance Method Summary collapse

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(options={})
  options[:field_type] = options[:field_type] || "short_answer"
  super(options)
  # extra attributes for ShortAnswer

end