Sha256: 64f8c2652f8de1865e30b4f857476879b8bc6d60c3ef4517320d5eefe51f8769

Contents?: true

Size: 699 Bytes

Versions: 31

Compression:

Stored size: 699 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # A tag that indicates the item or collection should be released.
    class ReleaseTag < Struct
      # Who did this release
      # example: petucket
      attribute? :who, Types::Strict::String
      # What is being released. This item or the whole collection.
      # example: self
      attribute? :what, Types::Strict::String.enum('self', 'collection')
      # When did this action happen
      attribute? :date, Types::Params::DateTime
      # What platform is it released to
      # example: Searchworks
      attribute? :to, Types::Strict::String
      attribute :release, Types::Strict::Bool.default(false)
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
cocina-models-0.95.1 lib/cocina/models/release_tag.rb
cocina-models-0.95.0 lib/cocina/models/release_tag.rb
cocina-models-0.94.2 lib/cocina/models/release_tag.rb
cocina-models-0.94.1 lib/cocina/models/release_tag.rb
cocina-models-0.94.0 lib/cocina/models/release_tag.rb
cocina-models-0.93.1 lib/cocina/models/release_tag.rb
cocina-models-0.93.0 lib/cocina/models/release_tag.rb
cocina-models-0.92.0 lib/cocina/models/release_tag.rb
cocina-models-0.91.4 lib/cocina/models/release_tag.rb
cocina-models-0.91.3 lib/cocina/models/release_tag.rb
cocina-models-0.91.2 lib/cocina/models/release_tag.rb
cocina-models-0.91.1 lib/cocina/models/release_tag.rb
cocina-models-0.91.0 lib/cocina/models/release_tag.rb
cocina-models-0.90.0 lib/cocina/models/release_tag.rb
cocina-models-0.89.1 lib/cocina/models/release_tag.rb
cocina-models-0.89.0 lib/cocina/models/release_tag.rb
cocina-models-0.88.0 lib/cocina/models/release_tag.rb
cocina-models-0.87.1 lib/cocina/models/release_tag.rb
cocina-models-0.87.0 lib/cocina/models/release_tag.rb
cocina-models-0.86.0 lib/cocina/models/release_tag.rb