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