Sha256: fdbdd2e5d01d3559e5842c6fe23c0b20ff641bdcc65dea9336ae896a6696bc38
Contents?: true
Size: 1.43 KB
Versions: 40
Compression:
Stored size: 1.43 KB
Contents
# frozen_string_literal: true module Cocina module Models # Description that is included in a request to create a DRO. This is the same as a Description, except excludes PURL. class RequestDescription < Struct include Validatable attribute :title, Types::Strict::Array.of(Title).default([].freeze) attribute :contributor, Types::Strict::Array.of(Contributor).default([].freeze) attribute :event, Types::Strict::Array.of(Event).default([].freeze) attribute :form, Types::Strict::Array.of(DescriptiveValue).default([].freeze) attribute :geographic, Types::Strict::Array.of(DescriptiveGeographicMetadata).default([].freeze) attribute :language, Types::Strict::Array.of(Language).default([].freeze) attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze) attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze) attribute :subject, Types::Strict::Array.of(DescriptiveValue).default([].freeze) attribute? :access, DescriptiveAccessMetadata.optional attribute :relatedResource, Types::Strict::Array.of(RelatedResource).default([].freeze) attribute :marcEncodedData, Types::Strict::Array.of(DescriptiveValue).default([].freeze) attribute? :adminMetadata, DescriptiveAdminMetadata.optional # URL or other pointer to the location of the resource description. attribute? :valueAt, Types::Strict::String end end end
Version data entries
40 entries across 40 versions & 1 rubygems