Sha256: 2c2ce7af6113b20b94a66a566add21e101959ec30f28cd132b443151504c2527

Contents?: true

Size: 415 Bytes

Versions: 4

Compression:

Stored size: 415 Bytes

Contents

module Ddr
  module Models
    module FixityCheckable

      def datastreams_to_validate
        datastreams.select { |dsid, ds| ds.has_content? }
      end

      def fixity_checks
        Ddr::Events::FixityCheckEvent.for_object(self)
      end

      # Returns a Ddr::Actions::FixityCheck::Result for the object
      def fixity_check
        Ddr::Actions::FixityCheck.execute(self)
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ddr-models-1.15.0 lib/ddr/models/fixity_checkable.rb
ddr-models-1.14.2 lib/ddr/models/fixity_checkable.rb
ddr-models-1.14.1 lib/ddr/models/fixity_checkable.rb
ddr-models-1.14.0 lib/ddr/models/fixity_checkable.rb