def job_to_hash(job)
      ret_value = {}
      job_stats = job.stats
      job_stats.keys.each { |key| ret_value[key] = job_stats[key] }
      ret_value['body'] = job.body.inspect
      ret_value
    end
def job_to_hash(job)
      ret_value = {}
      job_stats = job.stats
      job_stats.keys.each { |key| ret_value[key] = job_stats[key] }
      ret_value['body'] = job.body.inspect
      ret_value
    end
def job_to_hash ( job ) ret_value = { } job_stats = job . stats job_stats . keys . each { | key | ret_value [ key ] = job_stats [ key ] } ret_value [ 'body' ] = job . body . inspect ret_value end
Convert Beaneater::Job to hash
Convert Beaneater :: Job to hash