Class: ReeMapper::DefaultFactory

Inherits:
Object
  • Object
show all
Includes:
Ree::BeanDSL
Defined in:
lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb

Instance Method Summary collapse

Instance Method Details

#buildObject



11
12
13
14
15
16
17
18
# File 'lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb', line 11

def build
  build_mapper_factory(strategies: [
    build_mapper_strategy(method: :cast),
    build_mapper_strategy(method: :serialize),
    build_mapper_strategy(method: :db_dump),
    build_mapper_strategy(method: :db_load, dto: Object, always_optional: true)
  ])
end