Sha256: c6777407b02088720349520bb8468286a8264786dd85f72771754ed139d00804
Contents?: true
Size: 433 Bytes
Versions: 3
Compression:
Stored size: 433 Bytes
Contents
# -*- encoding : utf-8 -*- # Here you should define the method which are going to be called when the # publisher sends some event. class Observer < Untied::Consumer::Observer observe :user, :from => :core def after_create(model) puts "An user was created on Goliath server, yay!" puts model.inspect end def after_update(model) puts "An user was created on Goliath server, yay!" puts model.inspect end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
untied-0.0.7.pre3 | examples/consumer-daemon/observer.rb |
untied-0.0.5 | examples/consumer-daemon/observer.rb |
untied-0.0.4 | examples/consumer-daemon/observer.rb |