Method: Messaging::Routes#consumer

Defined in:
lib/messaging/routes.rb

#consumer(name, **options, &block) ⇒ Object

Creates a consumer for the default adapter

Parameters:

  • name (Symbol)

    the name of the consumer.



11
12
13
# File 'lib/messaging/routes.rb', line 11

def consumer(name, **options, &block)
  consumer_definitions[name] = { options: options, block: block }
end