This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Stats | |
QUEUES = [:bounced, :connect, :conversations, :deferred, :host, :lost, :sent] | |
def self.lookup(pattern) | |
keys = REDIS.keys(pattern) | |
REDIS.mapped_mget(*keys) | |
end | |
def self.day_for(ip) | |
# method should return a hash of count queues for 24 hours |