Sha256: f8dd89e127292819f2a779c0bbd14c93d85966df98dcacdef9bda65e40903c45

Contents?: true

Size: 440 Bytes

Versions: 36

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # The output of the message digest algorithm.
    class MessageDigest < Struct
      include Checkable

      TYPES = %w[md5
                 sha1].freeze

      # The algorithm that was used
      attribute :type, Types::Strict::String.enum(*MessageDigest::TYPES)
      # The digest value hexidecimal encoded
      attribute :digest, Types::Strict::String
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
cocina-models-0.99.1 lib/cocina/models/message_digest.rb
cocina-models-0.99.0 lib/cocina/models/message_digest.rb
cocina-models-0.98.1 lib/cocina/models/message_digest.rb
cocina-models-0.98.0 lib/cocina/models/message_digest.rb
cocina-models-0.96.0 lib/cocina/models/message_digest.rb
cocina-models-0.95.1 lib/cocina/models/message_digest.rb
cocina-models-0.95.0 lib/cocina/models/message_digest.rb
cocina-models-0.94.2 lib/cocina/models/message_digest.rb
cocina-models-0.94.1 lib/cocina/models/message_digest.rb
cocina-models-0.94.0 lib/cocina/models/message_digest.rb
cocina-models-0.93.1 lib/cocina/models/message_digest.rb
cocina-models-0.93.0 lib/cocina/models/message_digest.rb
cocina-models-0.92.0 lib/cocina/models/message_digest.rb
cocina-models-0.91.4 lib/cocina/models/message_digest.rb
cocina-models-0.91.3 lib/cocina/models/message_digest.rb
cocina-models-0.91.2 lib/cocina/models/message_digest.rb
cocina-models-0.91.1 lib/cocina/models/message_digest.rb
cocina-models-0.91.0 lib/cocina/models/message_digest.rb
cocina-models-0.90.0 lib/cocina/models/message_digest.rb
cocina-models-0.89.1 lib/cocina/models/message_digest.rb