class SimpleEventSourcing::Events::EventSubscriber
Public Instance Methods
check(event)
click to toggle source
# File lib/simple_event_sourcing/events/event_subscriber.rb, line 9 def check(event) raise EventIsNotAllowedToBeHandled unless is_subscribet_to? event end
handle(event)
click to toggle source
# File lib/simple_event_sourcing/events/event_subscriber.rb, line 17 def handle(event) check event handle_event event end
handle_event(event)
click to toggle source
# File lib/simple_event_sourcing/events/event_subscriber.rb, line 13 def handle_event(event) raise StandardError "Method not implemented" end
is_subscribet_to?(event)
click to toggle source
# File lib/simple_event_sourcing/events/event_subscriber.rb, line 5 def is_subscribet_to?(event) raise StandardError "Method not implemented" end