Sha256: ba627e109af78ae5091cc2d30dcce90d08ab034fca6b77ece7b5fffdb561b7b5
Contents?: true
Size: 388 Bytes
Versions: 2
Compression:
Stored size: 388 Bytes
Contents
module EMJack class Job attr_accessor :jobid, :body, :ttr, :conn def initialize(conn, jobid, body) @conn = conn @jobid = jobid.to_i @body = body end def delete(&blk) @conn.delete(self, &blk) end def stats(&blk) @conn.stats(:job, self, &blk) end def to_s "#{@jobid} -- #{body.inspect}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
em-jack-0.0.5 | lib/em-jack/job.rb |
em-jack-0.0.4 | lib/em-jack/job.rb |