Sha256: 5c00673416a860d206219c2f1199fc842f0dd729282b7a837b6cfe02c70327d5

Contents?: true

Size: 430 Bytes

Versions: 104

Compression:

Stored size: 430 Bytes

Contents

module Ddr
  module Events
    class VirusCheckEvent < Event

      include PreservationEventBehavior
      include ReindexObjectAfterSave

      self.preservation_event_type = :vir
      self.description = "Content file scanned for viruses"

      def to_solr
        { Ddr::Index::Fields::LAST_VIRUS_CHECK_ON => event_date_time_s,
          Ddr::Index::Fields::LAST_VIRUS_CHECK_OUTCOME => outcome }
      end

    end
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
ddr-models-2.1.1 lib/ddr/events/virus_check_event.rb
ddr-models-2.1.0 lib/ddr/events/virus_check_event.rb
ddr-models-2.1.0.rc2 lib/ddr/events/virus_check_event.rb
ddr-models-2.1.0.rc1 lib/ddr/events/virus_check_event.rb