Sha256: 6b95c013063e2b74bfc6fc6cf3ada1dd10e2f75b00eb7e5d4818835ec7b4c101
Contents?: true
Size: 1.17 KB
Versions: 12
Compression:
Stored size: 1.17 KB
Contents
# frozen_string_literal: true module Cocina module Models # Admin Policy with addition object metadata. class AdminPolicyWithMetadata < 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(*AdminPolicyWithMetadata::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 # When the object was created. attribute? :created, Types::Params::DateTime # When the object was modified. attribute? :modified, Types::Params::DateTime # Key for optimistic locking. The contents of the key is not specified. attribute :lock, Types::Strict::String end end end
Version data entries
12 entries across 12 versions & 1 rubygems