Sha256: 54b78ac5b8413b08e07d04c08325917c4e1f2a0d312421dd9a01621ccca31b30
Contents?: true
Size: 1.16 KB
Versions: 4
Compression:
Stored size: 1.16 KB
Contents
# frozen_string_literal: true module Cocina module Models class RequestCollection < 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) attribute :type, Types::Strict::String.enum(*RequestCollection::TYPES) attribute :label, Types::Strict::String attribute :version, Types::Strict::Integer.default(1).enum(1) attribute(:access, CollectionAccess.default { CollectionAccess.new }) attribute(:administrative, RequestAdministrative.default { RequestAdministrative.new }) attribute? :description, RequestDescription.optional attribute? :identification, CollectionIdentification.optional end end end
Version data entries
4 entries across 4 versions & 1 rubygems