Module: Jobi::Utils

Included in:
Jobi, Job, Message, Runner
Defined in:
lib/jobi/utils.rb

Instance Method Summary collapse

Instance Method Details

#constantize(string) ⇒ Object



5
6
7
# File 'lib/jobi/utils.rb', line 5

def constantize(string)
  Object::const_get(string)
end

#generate_job_idObject



9
10
11
# File 'lib/jobi/utils.rb', line 9

def generate_job_id
  SecureRandom.uuid
end