Class: CustomConsumer

Inherits:
ApplicationConsumer show all
Defined in:
lib/rimless/tasks/templates/custom_consumer.rb

Overview

A dedicated consumer to handle event-messages from your producing application. Just write a method with the name of an event and it is called directly with all the event data as parameters.

Instance Method Summary collapse

Methods inherited from Rimless::BaseConsumer

#arguments, #consume, #event

Instance Method Details

#custom_event(property1:, property2: nil) ⇒ Object

Handle custom_event event messages.



8
9
10
11
# File 'lib/rimless/tasks/templates/custom_consumer.rb', line 8

def custom_event(property1:, property2: nil)
  # Do whatever you need to do
  [property1, property2]
end