Sha256: fd0d7c904cf091e374af0c39b9b2adf62ec55f83aaac5feeaee359fa75d018cd

Contents?: true

Size: 302 Bytes

Versions: 4

Compression:

Stored size: 302 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 => :goliath

  def after_create(model)
    puts "An user was created on Goliath server, yay!"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
untied-0.0.7.pre3 examples/goliath/observer.rb
untied-0.0.5 examples/goliath/observer.rb
untied-0.0.4 examples/goliath/observer.rb
untied-0.0.1 examples/goliath/observer.rb