Class: FormObject::Base::FormBuilder
- Inherits:
-
Object
- Object
- FormObject::Base::FormBuilder
- Defined in:
- lib/form_object/base/form_builder.rb
Instance Attribute Summary collapse
-
#mapping_information ⇒ Object
readonly
Returns the value of attribute mapping_information.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(mapping_information, model) ⇒ FormBuilder
constructor
A new instance of FormBuilder.
Constructor Details
#initialize(mapping_information, model) ⇒ FormBuilder
Returns a new instance of FormBuilder.
5 6 7 |
# File 'lib/form_object/base/form_builder.rb', line 5 def initialize( mapping_information, model ) @mapping_information, @model = mapping_information, model end |
Instance Attribute Details
#mapping_information ⇒ Object (readonly)
Returns the value of attribute mapping_information.
3 4 5 |
# File 'lib/form_object/base/form_builder.rb', line 3 def mapping_information @mapping_information end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
3 4 5 |
# File 'lib/form_object/base/form_builder.rb', line 3 def model @model end |
Instance Method Details
#build ⇒ Object
9 10 11 |
# File 'lib/form_object/base/form_builder.rb', line 9 def build form_instance end |