module MailRunner::MadStatter

Public Class Methods

incr_stat(stat) click to toggle source
# File lib/mail_runner/stats.rb, line 11
def self.incr_stat(stat)
        case stat
                ###Totals###
                when "mail delivered"
                        $redis.incr("MR::mail_processed")
                when "runner launched"
                        $redis.incr("MR::sessions")
                #errors
                #added_queue
                #removed_queue
        end
end

Public Instance Methods

get_stat(stat) click to toggle source

get_stats

# File lib/mail_runner/stats.rb, line 5
def get_stat(stat)
        case stat
                when "session number"
                        $redis.get("MR::sessions")
        end
end