Sha256: b29c3e20eb9728fafb5cb17f0ac1e0861a1a21aa88982be5c88842ebd0926ff8

Contents?: true

Size: 848 Bytes

Versions: 17

Compression:

Stored size: 848 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class AdminPolicy < Struct
      include Validatable

      include Checkable

      TYPES = ['https://cocina.sul.stanford.edu/models/admin_policy'].freeze

      # The version of Cocina with which this object conforms.
      # example: 1.2.3
      attribute :cocinaVersion, Types::Strict::String.default(Cocina::Models::VERSION)
      attribute :type, Types::Strict::String.enum(*AdminPolicy::TYPES)
      # example: druid:bc123df4567
      attribute :externalIdentifier, Types::Strict::String
      attribute :label, Types::Strict::String
      attribute :version, Types::Strict::Integer
      attribute(:administrative, AdminPolicyAdministrative.default { AdminPolicyAdministrative.new })
      attribute :description, Description.optional.meta(omittable: true)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
cocina-models-0.75.0 lib/cocina/models/admin_policy.rb
cocina-models-0.74.1 lib/cocina/models/admin_policy.rb
cocina-models-0.74.0 lib/cocina/models/admin_policy.rb
cocina-models-0.73.6 lib/cocina/models/admin_policy.rb
cocina-models-0.73.5 lib/cocina/models/admin_policy.rb
cocina-models-0.73.4 lib/cocina/models/admin_policy.rb
cocina-models-0.73.3 lib/cocina/models/admin_policy.rb
cocina-models-0.73.2 lib/cocina/models/admin_policy.rb
cocina-models-0.73.1 lib/cocina/models/admin_policy.rb
cocina-models-0.73.0 lib/cocina/models/admin_policy.rb
cocina-models-0.72.0 lib/cocina/models/admin_policy.rb
cocina-models-0.71.0 lib/cocina/models/admin_policy.rb
cocina-models-0.70.0 lib/cocina/models/admin_policy.rb
cocina-models-0.69.2 lib/cocina/models/admin_policy.rb
cocina-models-0.69.1 lib/cocina/models/admin_policy.rb
cocina-models-0.69.0 lib/cocina/models/admin_policy.rb
cocina-models-0.68.0 lib/cocina/models/admin_policy.rb