Sha256: a8cc1004f1dacae4a657451159b8970bb6babbdb73f915996842424d8878135c
Contents?: true
Size: 1.56 KB
Versions: 28
Compression:
Stored size: 1.56 KB
Contents
# frozen_string_literal: true module Cocina module Models # A group of Digital Repository Objects that indicate some type of conceptual grouping within the domain that is worth reusing across the system. 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, CocinaVersion.default(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, Druid # 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
28 entries across 28 versions & 1 rubygems