Class: LiveQA::AsyncHandlers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/liveqa/async_handlers/base.rb

Direct Known Subclasses

Sidekiq

Instance Method Summary collapse

Instance Method Details

#enqueueObject



5
6
7
# File 'lib/liveqa/async_handlers/base.rb', line 5

def enqueue(*)
  raise LiveQA::MissingImplementation, 'Method \'enqueue\' need to be implemented in a subclass'
end

#execute(args) ⇒ Object



9
10
11
12
13
# File 'lib/liveqa/async_handlers/base.rb', line 9

def execute(args)
  klass_name, method, payload, request_options = args

  Object.const_get(klass_name).send(method.to_sym, payload, request_options)
end