Module: Warren::Handler
- Defined in:
- lib/warren/handler.rb,
lib/warren/handler/log.rb,
lib/warren/handler/base.rb,
lib/warren/handler/test.rb,
lib/warren/handler/broadcast.rb
Overview
A Handler provides an interface for sending messages to either a message queue, a log, or an internal store for testing purposes.
Defined Under Namespace
Classes: Base, Broadcast, Log, Test
Class Method Summary collapse
-
.routing_key_template(prefix) ⇒ String
Generates a template for routing keys for the given prefix, or a template that returns the provided routing key if no prefix is supplied.
Class Method Details
.routing_key_template(prefix) ⇒ String
Generates a template for routing keys for the given prefix, or a template that returns the provided routing key if no prefix is supplied.
26 27 28 |
# File 'lib/warren/handler.rb', line 26 def self.routing_key_template(prefix) prefix ? "#{prefix}.%s" : '%s' end |