Class: Servitium::ServiceSidekiqJob
- Inherits:
-
Object
- Object
- Servitium::ServiceSidekiqJob
- Includes:
- Sidekiq::Job
- Defined in:
- lib/servitium/service_sidekiq_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(class_name) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/servitium/service_sidekiq_job.rb', line 6 def perform(class_name, *) service = class_name.constantize.call(*) if service.context.success? service.send(:async_success) else service.send(:async_failure) end end |