Module: AccountComponent::Commands::Command

Included in:
Deposit, Withdraw
Defined in:
lib/account_component/commands/command.rb

Defined Under Namespace

Modules: Build, BuildMessage

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(cls) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/account_component/commands/command.rb', line 4

def self.included(cls)
  cls.class_exec do
    include Dependency

    include Messaging::StreamName
    include Messages::Events

    extend Build
    extend BuildMessage

    category :account

    dependency :write, Messaging::Postgres::Write
    dependency :clock, Clock::UTC
  end
end

Instance Method Details

#configureObject



21
22
23
24
# File 'lib/account_component/commands/command.rb', line 21

def configure
  Messaging::Postgres::Write.configure(self)
  Clock::UTC.configure(self)
end