Module: TallyJobs::ConfiguredJob

Defined in:
lib/tally_jobs/configured_job.rb

Instance Method Summary collapse

Instance Method Details

#enqueue_to_tally(*params) ⇒ Object



5
6
7
8
9
10
# File 'lib/tally_jobs/configured_job.rb', line 5

def enqueue_to_tally(*params)
    TallyJobs::JobsCounter.store.enqueue(
        [self.instance_variable_get(:@job_class), self.instance_variable_get(:@options)], 
        *params
    )
end