Module: Rddd

Defined in:
lib/rddd/configuration.rb,
lib/rddd.rb,
lib/rddd/version.rb,
lib/rddd/aggregates/root.rb,
lib/rddd/services/service.rb,
lib/rddd/aggregates/entity.rb,
lib/rddd/aggregates/finders.rb,
lib/rddd/authorization/rule.rb,
lib/rddd/presenters/cacheable.rb,
lib/rddd/presenters/presenter.rb,
lib/rddd/services/service_bus.rb,
lib/rddd/presenters/cache_entry.rb,
lib/rddd/authorization/authorize.rb,
lib/rddd/services/remote_service.rb,
lib/rddd/services/service_factory.rb,
lib/rddd/authorization/rules_builder.rb,
lib/rddd/services/transports/factory.rb,
lib/rddd/aggregates/repositories/base.rb,
lib/rddd/services/transports/http_json.rb,
lib/rddd/aggregates/repositories/factory.rb

Overview

Repository base class.

Defined Under Namespace

Modules: Aggregates, Authorization, Presenters, Repositories, Services Classes: Configuration

Constant Summary collapse

VERSION =
"0.3.3"

Class Method Summary collapse

Class Method Details

.configure {|Rddd::Configuration.instance| ... } ⇒ Object

Configure Rddd framework.

## Usage

Rddd.configure do |config|
  config.service_creator = lambda do |name|
    class_name = "#{name.to_s.camel_case}Service"

    Rddd::Services.const_get(class_name.to_sym)
  end
end

Yields:



19
20
21
# File 'lib/rddd.rb', line 19

def self.configure
  yield(Rddd::Configuration.instance)
end