summaryrefslogtreecommitdiff
path: root/fake-service/lib/pixelated_service/stats_observer.rb
blob: f4e2831b33b9986b12994033fe9eb89c28e169fa (plain)
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