Method: AllQ::Job#to_hash

Defined in:
lib/allq/job.rb

#to_hashObject



14
15
16
17
18
19
20
21
22
# File 'lib/allq/job.rb', line 14

def to_hash
  {
    'job_id' => @id,
    'body' => @body,
    'tube' => @tube,
    'expireds' => @expireds,
    'releases' => @releases
  }
end