Sha256: 95c048cf087faf93dc164294be133b6fd0ac74b839d242acf3331968721284a4
Contents?: true
Size: 460 Bytes
Versions: 1
Compression:
Stored size: 460 Bytes
Contents
module QPush module Web module Apis class History def initialize @jobs = nil end def call retrieve_jobs update_jobs end private def retrieve_jobs @jobs = Web.redis do |conn| conn.lrange(Web.keys.history, 0, 10) end end def update_jobs @jobs.map! { |i| JSON.parse(i) } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qpush-0.1.7 | lib/qpush/web/apis/history.rb |