Sha256: d557f27a7eea08da1f97300a367dcaf4a59ac7f923c46c8e333b0e263e555c73

Contents?: true

Size: 545 Bytes

Versions: 30

Compression:

Stored size: 545 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, output: :symbol_key_hash),
      build_mapper_strategy(method: :serialize, output: :symbol_key_hash),
      build_mapper_strategy(method: :db_dump, output: :symbol_key_hash),
      build_mapper_strategy(method: :db_load, output: :object, always_optional: true)
    ])
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
ree_lib-1.0.30 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.29 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.28 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.27 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.26 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.24 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.23 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.22 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.21 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.20 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.19 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.18 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.17 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.16 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.15 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.14 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.13 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.12 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.11 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb
ree_lib-1.0.10 lib/ree_lib/packages/ree_mapper/package/ree_mapper/default_factory.rb