Sha256: dc969ca64274ce09c46df81cd99e184ef5ac23170104acab1ffdb64d7f68b5f1
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
# frozen_string_literal: true module Cocina module Models class RequestCollection < Struct include Validatable include Checkable TYPES = ['http://cocina.sul.stanford.edu/models/collection.jsonld', 'http://cocina.sul.stanford.edu/models/curated-collection.jsonld', 'http://cocina.sul.stanford.edu/models/user-collection.jsonld', 'http://cocina.sul.stanford.edu/models/exhibit.jsonld', 'http://cocina.sul.stanford.edu/models/series.jsonld'].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 attribute(:access, CollectionAccess.default { CollectionAccess.new }) attribute(:administrative, Administrative.default { Administrative.new }) attribute :description, RequestDescription.optional.meta(omittable: true) attribute :identification, CollectionIdentification.optional.meta(omittable: true) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocina-models-0.66.0 | lib/cocina/models/request_collection.rb |