Class: Vero::ResqueWorker

Inherits:
Object show all
Defined in:
lib/vero/senders/resque.rb

Class Method Summary collapse

Class Method Details

.perform(api_class_name, domain, options) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/vero/senders/resque.rb', line 8

def self.perform(api_class_name, domain, options)
  api_class = eval(api_class_name)
  new_options = {}
  options.each do |k,v|
    new_options[k.to_sym] = v
  end

  api_class.new(domain, new_options).perform
  Vero::App.log(self, "method: #{api_class.name}, options: #{options.to_json}, response: resque job queued")
end