Module: Clamour::Handler
- Extended by:
- ActiveSupport::Concern
- Included in:
- Message::Receive
- Defined in:
- lib/clamour/handler.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #on_message(message) ⇒ Object abstract
-
#perform(message_class_name, message_attributes) ⇒ Object
Like a usual Sidekiq job.
Instance Method Details
#on_message(message) ⇒ Object
This method is abstract.
You must use on_message
method to act on a message.
36 37 38 |
# File 'lib/clamour/handler.rb', line 36 def () raise NotImplementedError.new('You must override "on_message" method to act on a message') end |
#perform(message_class_name, message_attributes) ⇒ Object
Like a usual Sidekiq job.
29 30 31 32 |
# File 'lib/clamour/handler.rb', line 29 def perform(, ) = (, ) () end |