Module: Scales::Worker::Job

Defined in:
lib/scales-worker/job.rb

Class Method Summary collapse

Class Method Details

.to_env(job) ⇒ Object



6
7
8
9
10
# File 'lib/scales-worker/job.rb', line 6

def to_env(job)
  env = JSON.parse(job)
  env['rack.input'] = StringIO.new(env['rack.input'])
  env
end