Class: Faulty::Events::ListenerInterface

Inherits:
Object
  • Object
show all
Defined in:
lib/faulty/events/listener_interface.rb

Overview

The interface required to implement a event listener

This is for documentation only and is not loaded

Instance Method Summary collapse

Instance Method Details

#handle(event, payload) ⇒ void

This method returns an undefined value.

Handle an event raised by Faulty

Parameters:

  • event (Symbol)

    The event name. Will be a member of EVENTS.

  • payload (Hash)

    A hash with keys based on the event type


14
15
# File 'lib/faulty/events/listener_interface.rb', line 14

def handle(event, payload)
end