1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
module PixelatedService class StatsObserver def initialize(stats) @stats = stats @stats.stats_init end def mail_added(mail) @stats.stats_added mail end def mail_removed(mail) @stats.stats_removed mail end def mail_updated(before, after) end end end