Class: ReeMapper::ObjectOutput
- Inherits:
-
StrategyOutput
show all
- Defined in:
- lib/ree_lib/packages/ree_mapper/package/ree_mapper/strategy_outputs/object_output.rb
Instance Attribute Summary
#dto
Instance Method Summary
collapse
#initialize, #prepare_dto
Instance Method Details
#assign_value(object, field, value) ⇒ Object
10
11
12
13
|
# File 'lib/ree_lib/packages/ree_mapper/package/ree_mapper/strategy_outputs/object_output.rb', line 10
def assign_value(object, field, value)
object.instance_variable_set(field.name_as_instance_var_name, value)
nil
end
|
#build_object ⇒ Object
5
6
7
|
# File 'lib/ree_lib/packages/ree_mapper/package/ree_mapper/strategy_outputs/object_output.rb', line 5
def build_object
dto.allocate
end
|