class EventSourcing::Event::Bus::Reference
Public Instance Methods
get_stream(id)
click to toggle source
# File lib/event_sourcing/event/bus/reference.rb, line 13 def get_stream(id) store.get_stream(id) end
publish(events)
click to toggle source
# File lib/event_sourcing/event/bus/reference.rb, line 9 def publish(events) publisher.publish(events) end
Private Instance Methods
publisher()
click to toggle source
# File lib/event_sourcing/event/bus/reference.rb, line 18 def publisher @publisher ||= ask!(:get_event_publisher) end
store()
click to toggle source
# File lib/event_sourcing/event/bus/reference.rb, line 22 def store @store ||= ask!(:get_event_store) end