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