Sha256: 01967b240a8004477b56b85859e494d4d5585199fcddd50213ff26b85483b070
Contents?: true
Size: 578 Bytes
Versions: 6
Compression:
Stored size: 578 Bytes
Contents
module Ddr::Events class UpdateEvent < Event self.description = "Object updated" def self.call(*args) super do |event, notification| attrs_changed = notification.payload[:attributes_changed] ds_changed = notification.payload[:datastreams_changed] detail = [ "Datastreams changed: #{ds_changed.join(', ')}", event.detail, ] if attrs_changed.present? detail << "Attributes changed: #{attrs_changed}" end event.detail = detail.compact.join("\n\n") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems