Class: Messaging::ResqueWorker

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

Class Method Summary collapse

Class Method Details

.perform(raw_message, handler_name) ⇒ Object



5
6
7
8
9
# File 'lib/messaging/resque_worker.rb', line 5

def self.perform(raw_message, handler_name)
  message = Messaging::Message::FromJson.(raw_message)
  handler = handler_name.constantize
  handler.call message
end