Sha256: 7f5b288fcdd8be355a5fdb61757f8693f5e7c44997a46c09de7b5d78e898fe11

Contents?: true

Size: 507 Bytes

Versions: 3

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # Subschema for release tags
    class ReleaseTag < Struct
      attribute :to, Types::Strict::String.enum('Searchworks', 'Earthworks')
      attribute :what, Types::Strict::String.enum('self', 'collection')
      # we use 'when' other places, but that's reserved word, so 'date' it is!
      attribute :date, Types::Params::DateTime
      attribute :who, Types::Strict::String
      attribute :release, Types::Strict::Bool
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cocina-models-0.29.0 lib/cocina/models/release_tag.rb
cocina-models-0.28.0 lib/cocina/models/release_tag.rb
cocina-models-0.27.0 lib/cocina/models/release_tag.rb