Sha256: a22c92ebe57df82df487c2c45ab8a9327adf183ba9ad93c3178aaf06ccaada73

Contents?: true

Size: 827 Bytes

Versions: 16

Compression:

Stored size: 827 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
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cocina-models-0.86.0 lib/cocina/models/admin_policy.rb
cocina-models-0.85.0 lib/cocina/models/admin_policy.rb
cocina-models-0.84.5 lib/cocina/models/admin_policy.rb
cocina-models-0.84.4 lib/cocina/models/admin_policy.rb
cocina-models-0.84.3 lib/cocina/models/admin_policy.rb
cocina-models-0.84.2 lib/cocina/models/admin_policy.rb
cocina-models-0.84.1 lib/cocina/models/admin_policy.rb
cocina-models-0.84.0 lib/cocina/models/admin_policy.rb
cocina-models-0.83.0 lib/cocina/models/admin_policy.rb
cocina-models-0.82.0 lib/cocina/models/admin_policy.rb
cocina-models-0.81.0 lib/cocina/models/admin_policy.rb
cocina-models-0.80.0 lib/cocina/models/admin_policy.rb
cocina-models-0.79.0 lib/cocina/models/admin_policy.rb
cocina-models-0.78.0 lib/cocina/models/admin_policy.rb
cocina-models-0.77.0 lib/cocina/models/admin_policy.rb
cocina-models-0.76.0 lib/cocina/models/admin_policy.rb