class Ddr::Events::FixityCheckEvent
Public Class Methods
call(*args)
click to toggle source
Message sent by ActiveSupport::Notifications
Calls superclass method
Ddr::Events::Event::call
# File lib/ddr/events/fixity_check_event.rb, line 12 def self.call(*args) super do |payload| results = payload.delete(:results) payload[:outcome] = results.success? ? SUCCESS : FAILURE payload[:detail] = "Fixity check results:\n\n#{results}" end end
Public Instance Methods
to_solr()
click to toggle source
# File lib/ddr/events/fixity_check_event.rb, line 20 def to_solr { Ddr::Index::Fields::LAST_FIXITY_CHECK_ON => event_date_time_s, Ddr::Index::Fields::LAST_FIXITY_CHECK_OUTCOME => outcome } end