module JobHunter::InstanceMethods
Public Instance Methods
create()
click to toggle source
# File lib/job_hunter/dj_wrappers.rb, line 11 def create Delayed::Job.enqueue(self, _options_) end
destroy()
click to toggle source
# File lib/job_hunter/dj_wrappers.rb, line 19 def destroy find.try(:destroy) end
find()
click to toggle source
# File lib/job_hunter/dj_wrappers.rb, line 7 def find scope.first end
find_or_create()
click to toggle source
# File lib/job_hunter/dj_wrappers.rb, line 15 def find_or_create find or create end
scope()
click to toggle source
# File lib/job_hunter/dj_wrappers.rb, line 23 def scope Delayed::Job.where(handler: to_yaml, failed_at: nil) end
Private Instance Methods
_options_()
click to toggle source
# File lib/job_hunter/dj_wrappers.rb, line 28 def _options_ {} end