Sha256: e4dffc2f449bcd330ab1b14a46cc3a76ff1ee7cd81c61302506b1e6c53ca2d59

Contents?: true

Size: 385 Bytes

Versions: 17

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    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 Base64 encoded
      attribute :digest, Types::Strict::String
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
cocina-models-0.42.1 lib/cocina/models/message_digest.rb
cocina-models-0.42.0 lib/cocina/models/message_digest.rb
cocina-models-0.41.0 lib/cocina/models/message_digest.rb
cocina-models-0.40.1 lib/cocina/models/message_digest.rb
cocina-models-0.40.0 lib/cocina/models/message_digest.rb
cocina-models-0.39.0 lib/cocina/models/message_digest.rb
cocina-models-0.38.0 lib/cocina/models/message_digest.rb
cocina-models-0.37.0 lib/cocina/models/message_digest.rb
cocina-models-0.36.0 lib/cocina/models/message_digest.rb
cocina-models-0.35.0 lib/cocina/models/message_digest.rb
cocina-models-0.34.1 lib/cocina/models/message_digest.rb
cocina-models-0.34.0 lib/cocina/models/message_digest.rb
cocina-models-0.33.0 lib/cocina/models/message_digest.rb
cocina-models-0.32.0 lib/cocina/models/message_digest.rb
cocina-models-0.31.1 lib/cocina/models/message_digest.rb
cocina-models-0.31.0 lib/cocina/models/message_digest.rb
cocina-models-0.30.0 lib/cocina/models/message_digest.rb