Sha256: 41de6c3e3e3e9b9073a11550077170b81e95da0c8216d34f99f688d40348225c

Contents?: true

Size: 819 Bytes

Versions: 17

Compression:

Stored size: 819 Bytes

Contents

# frozen_string_literal: true

module Dor
  module Services
    class Client
      # A tag that indicates the item or collection should be released.
      class ReleaseTag < Dry::Struct
        transform_keys(&:to_sym)
        schema schema.strict
        # 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
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
dor-services-client-15.5.0 lib/dor/services/client/release_tag.rb
dor-services-client-15.4.0 lib/dor/services/client/release_tag.rb
dor-services-client-15.3.0 lib/dor/services/client/release_tag.rb
dor-services-client-15.2.1 lib/dor/services/client/release_tag.rb
dor-services-client-15.2.0 lib/dor/services/client/release_tag.rb
dor-services-client-15.1.0 lib/dor/services/client/release_tag.rb
dor-services-client-15.0.0 lib/dor/services/client/release_tag.rb
dor-services-client-14.21.0 lib/dor/services/client/release_tag.rb
dor-services-client-14.20.0 lib/dor/services/client/release_tag.rb
dor-services-client-14.19.0 lib/dor/services/client/release_tag.rb
dor-services-client-14.18.0 lib/dor/services/client/release_tag.rb
dor-services-client-14.17.0 lib/dor/services/client/release_tag.rb
dor-services-client-14.16.0 lib/dor/services/client/release_tag.rb
dor-services-client-14.15.0 lib/dor/services/client/release_tag.rb
dor-services-client-14.14.0 lib/dor/services/client/release_tag.rb
dor-services-client-14.13.0 lib/dor/services/client/release_tag.rb
dor-services-client-14.12.0 lib/dor/services/client/release_tag.rb