Class: Vero::SuckerPunchWorker
- Includes:
- SuckerPunch::Job
- Defined in:
- lib/vero/senders/thread.rb
Instance Method Summary collapse
Instance Method Details
#perform(api_class, domain, options) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/vero/senders/thread.rb', line 8 def perform(api_class, domain, ) = {} .each { |k,v| [k.to_sym] = v } begin api_class.new(domain, ).perform Vero::App.log(self, "method: #{api_class.name}, options: #{options.to_json}, response: job performed") rescue => e Vero::App.log(self, "method: #{api_class.name}, options: #{options.to_json}, response: #{e.message}") end end |