summaryrefslogtreecommitdiff
path: root/fake-service/lib/pixelated_service/combined_observer.rb
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-08-20 14:59:46 -0300
committerDuda Dornelles <ddornell@thoughtworks.com>2014-08-21 10:50:11 -0300
commit44e1ff7a6ce3329f747cb6a52c91bc47a0c8c93c (patch)
treefd7162b4e61286c3f8a4dd31a2cbb1006bd4b64e /fake-service/lib/pixelated_service/combined_observer.rb
parentd63d4b489af735651cee9d50357aa84106a19cd2 (diff)
removing fake service
Diffstat (limited to 'fake-service/lib/pixelated_service/combined_observer.rb')
-rw-r--r--fake-service/lib/pixelated_service/combined_observer.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/fake-service/lib/pixelated_service/combined_observer.rb b/fake-service/lib/pixelated_service/combined_observer.rb
deleted file mode 100644
index a300f6e6..00000000
--- a/fake-service/lib/pixelated_service/combined_observer.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-module PixelatedService
- class CombinedObserver
- def initialize(*observers)
- @observers = observers
- end
-
- def <<(observer)
- @observers << observer
- end
-
- def mail_added(mail)
- @observers.each { |o| o.mail_added(mail) }
- end
-
- def mail_removed(mail)
- @observers.each { |o| o.mail_removed(mail) }
- end
-
- def mail_updated(before, after)
- @observers.each { |o| o.mail_updated(before, after) }
- end
- end
-end