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

Attributes inherited from StrategyOutput

#dto

Instance Method Summary collapse

Methods inherited from StrategyOutput

#initialize, #prepare_dto

Constructor Details

This class inherits a constructor from ReeMapper::StrategyOutput

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_objectObject



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