Class: EventSorcerer::MessageBus

Inherits:
Object
  • Object
show all
Defined in:
lib/event_sorcerer/message_bus.rb

Overview

Public: Abstract class for an message bus implementation.

Instance Method Summary collapse

Instance Method Details

#publish_events(_id, _type, _events, _meta) ⇒ Object

Public: Publish events for a specified aggregate. Should be defined in a

subclass.

_id - UUID of the aggregate as a String. _type - Text representation of aggregate class. _events - Array of Event objects. _meta - Hash of extra data to publish on the bus.

Raises a NotImplementedError



13
14
15
# File 'lib/event_sorcerer/message_bus.rb', line 13

def publish_events(_id, _type, _events, _meta)
  fail NotImplementedError
end