Sha256: 36bfa9cc43fe92f25e5a7f1f1f2380e38cee1d8c5e0c8fda980e9d9c25dfc4ea

Contents?: true

Size: 229 Bytes

Versions: 15

Compression:

Stored size: 229 Bytes

Contents

module Ddr
  class Digest < Valkyrie::Resource

    attribute :type, Ddr::Files::CHECKSUM_TYPES
    attribute :value, Valkyrie::Types::Strict::String

    def sha1?
      type == Ddr::Files::CHECKSUM_TYPE_SHA1
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ddr-core-1.17.0 app/models/ddr/digest.rb
ddr-core-1.16.0 app/models/ddr/digest.rb
ddr-core-1.15.0 app/models/ddr/digest.rb
ddr-core-1.14.0 app/models/ddr/digest.rb
ddr-core-1.13.2 app/models/ddr/digest.rb
ddr-core-1.13.1 app/models/ddr/digest.rb
ddr-core-1.13.0 app/models/ddr/digest.rb
ddr-core-1.12.2 app/models/ddr/digest.rb
ddr-core-1.12.1 app/models/ddr/digest.rb
ddr-core-1.12.0 app/models/ddr/digest.rb
ddr-core-1.11.0 app/models/ddr/digest.rb
ddr-core-1.10.0 app/models/ddr/digest.rb
ddr-core-1.9.0 app/models/ddr/digest.rb
ddr-core-1.8.0 app/models/ddr/digest.rb
ddr-core-1.7.0 app/models/ddr/digest.rb