Sha256: d9473601815ea1dfb5a5389dc9b3406ba51d7442c10bf8006ce1d7cfcc3b6bd2

Contents?: true

Size: 463 Bytes

Versions: 94

Compression:

Stored size: 463 Bytes

Contents

class ReeMapper::DefaultFactory
  include Ree::BeanDSL

  bean :default_factory do
    link :build_mapper_factory
    link :build_mapper_strategy

    factory :build
  end

  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
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
ree_lib-1.0.44 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.43 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.42 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.41 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.40 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.39 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.38 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.37 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.36 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.35 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.34 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.33 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.32 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.31 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb