Module: LedgerSync::Domains
- Defined in:
- lib/ledger_sync/domains.rb,
lib/ledger_sync/domains/store.rb,
lib/ledger_sync/domains/version.rb,
lib/ledger_sync/domains/operation.rb,
lib/ledger_sync/domains/serializer.rb,
lib/ledger_sync/domains/operation/add.rb,
lib/ledger_sync/domains/operation/find.rb,
lib/ledger_sync/domains/operation/query.rb,
lib/ledger_sync/domains/operation/remove.rb,
lib/ledger_sync/domains/operation/search.rb,
lib/ledger_sync/domains/operation/update.rb,
lib/ledger_sync/domains/serializer/query.rb,
lib/ledger_sync/domains/serializer/struct.rb,
lib/ledger_sync/domains/operation/resource.rb,
lib/ledger_sync/domains/operation/transition.rb
Defined Under Namespace
Classes: Configuration, ConfigurationStore, InternalOperationError, Operation, Serializer
Constant Summary
collapse
- VERSION =
'1.2.1'
Class Method Summary
collapse
Class Method Details
.register_domain(*args, **params) {|config| ... } ⇒ Object
23
24
25
26
27
28
|
# File 'lib/ledger_sync/domains.rb', line 23
def self.register_domain(*args, **params)
config = LedgerSync::Domains::Configuration.new(*args, **params)
yield(config) if block_given?
domains.register_domain(config: config)
end
|
.register_main_domain ⇒ Object
30
31
32
33
34
35
|
# File 'lib/ledger_sync/domains.rb', line 30
def self.register_main_domain
config = LedgerSync::Domains::Configuration.new(:main, base_module: nil)
config.name = 'Main'
domains.register_domain(config: config)
end
|