Class: Vero::ResqueWorker

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

Class Method Summary collapse

Class Method Details

.perform(api_class, domain, options) ⇒ Object



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

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

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