Class: Messaging::Routing::EnqueueMessageHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/messaging/routing/enqueue_message_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#handlerObject (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(message)
  Config.background_job_handler.call(message, handler)
end