Sha256: fb0b07ab7d6b47bf2492c5932a9310348fa3f474f88912d17263cb3abd235fce

Contents?: true

Size: 1.4 KB

Versions: 24

Compression:

Stored size: 1.4 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class Description < 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
      # Stanford persistent URL associated with the related resource.
      attribute :purl, Purl
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
cocina-models-0.99.1 lib/cocina/models/description.rb
cocina-models-0.99.0 lib/cocina/models/description.rb
cocina-models-0.98.1 lib/cocina/models/description.rb
cocina-models-0.98.0 lib/cocina/models/description.rb
cocina-models-0.96.0 lib/cocina/models/description.rb
cocina-models-0.95.1 lib/cocina/models/description.rb
cocina-models-0.95.0 lib/cocina/models/description.rb
cocina-models-0.94.2 lib/cocina/models/description.rb
cocina-models-0.94.1 lib/cocina/models/description.rb
cocina-models-0.94.0 lib/cocina/models/description.rb
cocina-models-0.93.1 lib/cocina/models/description.rb
cocina-models-0.93.0 lib/cocina/models/description.rb
cocina-models-0.92.0 lib/cocina/models/description.rb
cocina-models-0.91.4 lib/cocina/models/description.rb
cocina-models-0.91.3 lib/cocina/models/description.rb
cocina-models-0.91.2 lib/cocina/models/description.rb
cocina-models-0.91.1 lib/cocina/models/description.rb
cocina-models-0.91.0 lib/cocina/models/description.rb
cocina-models-0.90.0 lib/cocina/models/description.rb
cocina-models-0.89.1 lib/cocina/models/description.rb