Class: FormObject::Base::FormBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/form_object/base/form_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_informationObject (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

#modelObject (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

#buildObject



9
10
11
# File 'lib/form_object/base/form_builder.rb', line 9

def build
  form_instance
end