Class: Jets::Rails::Job::Executer

Inherits:
Object
  • Object
show all
Extended by:
Memoist
Defined in:
lib/jets/rails/job/executer.rb

Instance Method Summary collapse

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

#executeObject



11
12
13
# File 'lib/jets/rails/job/executer.rb', line 11

def execute
  ActiveJob::Base.execute(@job_data)
end