Sha256: fb5b49e28a5cbd33d44bde7855371ae99a50919a326303a8ceb58c593cb42a1c
Contents?: true
Size: 434 Bytes
Versions: 3
Compression:
Stored size: 434 Bytes
Contents
module QPush module Web module Apis class Jobs def initialize @jobs = nil end def call retrieve_jobs update_jobs end private def retrieve_jobs Web.redis { |c| @jobs = c.smembers(QPush::Base::KEY + ':jobs') } end def update_jobs @jobs.map! { |job| { klass: job } } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qpush-0.1.10 | lib/qpush/web/apis/jobs.rb |
qpush-0.1.8 | lib/qpush/web/apis/jobs.rb |
qpush-0.1.7 | lib/qpush/web/apis/jobs.rb |