Class: EventSourcing::Event::Bus
- Inherits:
-
Concurrent::Actor::RestartingContext
- Object
- Concurrent::Actor::RestartingContext
- EventSourcing::Event::Bus
- Defined in:
- lib/event_sourcing/event/bus.rb,
lib/event_sourcing/event/bus/reference.rb
Defined Under Namespace
Classes: Reference
Instance Method Summary collapse
- #default_reference_class ⇒ Object
-
#initialize(event_store) ⇒ Bus
constructor
A new instance of Bus.
- #on_message(message) ⇒ Object
Constructor Details
Instance Method Details
#default_reference_class ⇒ Object
24 25 26 |
# File 'lib/event_sourcing/event/bus.rb', line 24 def default_reference_class Reference end |
#on_message(message) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/event_sourcing/event/bus.rb', line 15 def () case when :get_event_publisher @publisher when :get_event_store @store end end |