Sha256: 75bb88f32a64a7298e3e767a4eaaad516206131e7b8e911f4ed67ec2c5204a69

Contents?: true

Size: 429 Bytes

Versions: 28

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

# 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.
class CustomConsumer < ApplicationConsumer
  # Handle +custom_event+ event messages.
  def custom_event(property1:, property2: nil)
    # Do whatever you need to do
    [property1, property2]
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rimless-1.10.2 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.10.1 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.10.0 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.9.0 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.8.0 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.7.7 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.7.6 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.7.5 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.7.4 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.7.3 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.7.2 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.7.1 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.7.0 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.6.0 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.5.1 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.5.0 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.4.2 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.4.1 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.4.0 lib/rimless/tasks/templates/custom_consumer.rb
rimless-1.3.0 lib/rimless/tasks/templates/custom_consumer.rb