Class: Jets::Rails::Job::Executer
- Inherits:
-
Object
- Object
- Jets::Rails::Job::Executer
- Extended by:
- Memoist
- Defined in:
- lib/jets/rails/job/executer.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(job_data) ⇒ Executer
constructor
A new instance of Executer.
Constructor Details
#initialize(job_data) ⇒ Executer
Returns a new instance of Executer.
7 8 9 |
# File 'lib/jets/rails/job/executer.rb', line 7 def initialize(job_data) @job_data = job_data end |
Instance Method Details
#execute ⇒ Object
11 12 13 |
# File 'lib/jets/rails/job/executer.rb', line 11 def execute ActiveJob::Base.execute(@job_data) end |