Class: Logcraft::Sidekiq::JobContext

Inherits:
Object
  • Object
show all
Defined in:
lib/logcraft/sidekiq/job_context.rb

Class Method Summary collapse

Class Method Details

.from_job_hash(job_hash) ⇒ Object



7
8
9
10
11
# File 'lib/logcraft/sidekiq/job_context.rb', line 7

def from_job_hash(job_hash)
  return {} if job_hash.nil?
  basic_info_from(job_hash).merge thread_info,
                                  params: named_arguments_from(job_hash)
end