summaryrefslogtreecommitdiff
path: root/fake-service/lib/smail/stats_observer.rb
blob: f4f9b1cd68bdab22ae6fcb2f5d5cee1183af8148 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Smail
  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