Sha256: 2e4cfc3c550027f3ce2e136f785332b09cf747f58a33a76dcd981c3388645efd
Contents?: true
Size: 1.45 KB
Versions: 17
Compression:
Stored size: 1.45 KB
Contents
# frozen_string_literal: true module Cocina module Models class Collection < Struct include Validatable include Checkable TYPES = ['https://cocina.sul.stanford.edu/models/collection', 'https://cocina.sul.stanford.edu/models/curated-collection', 'https://cocina.sul.stanford.edu/models/user-collection', 'https://cocina.sul.stanford.edu/models/exhibit', 'https://cocina.sul.stanford.edu/models/series'].freeze # The version of Cocina with which this object conforms. # example: 1.2.3 attribute :cocinaVersion, Types::Strict::String.default(Cocina::Models::VERSION) # The content type of the Collection. Selected from an established set of values. attribute :type, Types::Strict::String.enum(*Collection::TYPES) # example: druid:bc123df4567 attribute :externalIdentifier, Types::Strict::String # Primary processing label (can be same as title) for a Collection. attribute :label, Types::Strict::String # Version for the Collection within SDR. attribute :version, Types::Strict::Integer attribute(:access, CollectionAccess.default { CollectionAccess.new }) attribute(:administrative, Administrative.default { Administrative.new }) attribute(:description, Description.default { Description.new }) attribute(:identification, CollectionIdentification.default { CollectionIdentification.new }) end end end
Version data entries
17 entries across 17 versions & 1 rubygems