Module: Clamour::Handler::ClassMethods

Defined in:
lib/clamour/handler.rb

Instance Method Summary collapse

Instance Method Details

#perform(message, subscription) ⇒ Object

Special thing for internal purposes only. Just implement on_message(message) method.

Parameters:



20
21
22
# File 'lib/clamour/handler.rb', line 20

def perform(message, subscription)
  perform_async(message.class.to_s, message.to_hash)
end