Sha256: 5de98ac723da188962e67b4e42c9f811f5620f81bb799d92ac65323f744e6859

Contents?: true

Size: 606 Bytes

Versions: 35

Compression:

Stored size: 606 Bytes

Contents

class WatcherNotifier
  attr_accessor :matched_label, :old_value, :new_value, :model_class, :model_id, :type, :created_by

  def initialze
    puts "---------------------------------------->"
  end

  def notify(matched_label, old_value, new_value, model_class, model_id,owner_id,type, created_by)          
     @matched_label= matched_label
     @old_value = old_value
     @new_value = new_value
     @model_class = model_class
     @model_id = model_id 
     @type = type
     @created_by = created_by

     puts "fake notification sent for label #{@matched_label} with value #{@new_value}"

  end

end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
active_metadata-0.8.1 spec/support/watcher_notifier.rb
active_metadata-0.8.0 spec/support/watcher_notifier.rb
active_metadata-0.7.9 spec/support/watcher_notifier.rb
active_metadata-0.7.8 spec/support/watcher_notifier.rb
active_metadata-0.7.7 spec/support/watcher_notifier.rb
active_metadata-0.7.6 spec/support/watcher_notifier.rb
active_metadata-0.7.5 spec/support/watcher_notifier.rb
active_metadata-0.7.4 spec/support/watcher_notifier.rb
active_metadata-0.7.3 spec/support/watcher_notifier.rb
active_metadata-0.7.2 spec/support/watcher_notifier.rb
active_metadata-0.7.1 spec/support/watcher_notifier.rb
active_metadata-0.7.0 spec/support/watcher_notifier.rb
active_metadata-0.6.9 spec/support/watcher_notifier.rb
active_metadata-0.6.7 spec/support/watcher_notifier.rb
active_metadata-0.6.6 spec/support/watcher_notifier.rb
active_metadata-0.6.5 spec/support/watcher_notifier.rb
active_metadata-0.6.4 spec/support/watcher_notifier.rb
active_metadata-0.6.3 spec/support/watcher_notifier.rb
active_metadata-0.6.2 spec/support/watcher_notifier.rb
active_metadata-0.6.1 spec/support/watcher_notifier.rb