Sha256: ff8221da144a8048bbc0b90fc99db6b08d1f0971618c9ab7435244c6d26725bc

Contents?: true

Size: 1.45 KB

Versions: 15

Compression:

Stored size: 1.45 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. Note this is http, not https.
      attribute :purl, Types::Strict::String
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
cocina-models-0.86.0 lib/cocina/models/description.rb
cocina-models-0.84.5 lib/cocina/models/description.rb
cocina-models-0.84.4 lib/cocina/models/description.rb
cocina-models-0.84.3 lib/cocina/models/description.rb
cocina-models-0.84.2 lib/cocina/models/description.rb
cocina-models-0.84.1 lib/cocina/models/description.rb
cocina-models-0.84.0 lib/cocina/models/description.rb
cocina-models-0.83.0 lib/cocina/models/description.rb
cocina-models-0.82.0 lib/cocina/models/description.rb
cocina-models-0.81.0 lib/cocina/models/description.rb
cocina-models-0.80.0 lib/cocina/models/description.rb
cocina-models-0.79.0 lib/cocina/models/description.rb
cocina-models-0.78.0 lib/cocina/models/description.rb
cocina-models-0.77.0 lib/cocina/models/description.rb
cocina-models-0.76.0 lib/cocina/models/description.rb