Class: Messaging::Routing::EnqueueMessageHandler
- Inherits:
-
Object
- Object
- Messaging::Routing::EnqueueMessageHandler
- Defined in:
- lib/messaging/routing/enqueue_message_handler.rb
Instance Attribute Summary collapse
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
Instance Method Summary collapse
- #call(message) ⇒ Object
-
#initialize(handler) ⇒ EnqueueMessageHandler
constructor
A new instance of EnqueueMessageHandler.
Constructor Details
#initialize(handler) ⇒ EnqueueMessageHandler
Returns a new instance of EnqueueMessageHandler.
6 7 8 |
# File 'lib/messaging/routing/enqueue_message_handler.rb', line 6 def initialize(handler) @handler = handler end |
Instance Attribute Details
#handler ⇒ Object (readonly)
Returns the value of attribute handler.
4 5 6 |
# File 'lib/messaging/routing/enqueue_message_handler.rb', line 4 def handler @handler end |
Instance Method Details
#call(message) ⇒ Object
10 11 12 |
# File 'lib/messaging/routing/enqueue_message_handler.rb', line 10 def call() Config.background_job_handler.call(, handler) end |