Class: Ezlog::Sidekiq::JobContext

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

Class Method Summary collapse

Class Method Details

.from_job_hash(job_hash) ⇒ Object



5
6
7
8
# File 'lib/ezlog/sidekiq/job_context.rb', line 5

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