Sha256: aafebb2101042bef2e17074acb41eeff3c97ae34a8c1cb4bc0d20388b10833c3

Contents?: true

Size: 1.79 KB

Versions: 27

Compression:

Stored size: 1.79 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # Other resource associated with the described resource.
    class RelatedResource < Struct
      # The relationship of the related resource to the described resource.
      attribute? :type, Types::Strict::String
      # Status of the related resource relative to other related resources.
      attribute? :status, Types::Strict::String
      # The preferred display label to use for the related resource in access systems.
      attribute? :displayLabel, Types::Strict::String
      attribute :title, Types::Strict::Array.of(DescriptiveValue).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 :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? :standard, Standard.optional
      attribute :subject, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      # Stanford persistent URL associated with the related resource.
      attribute? :purl, Purl.optional
      attribute? :access, DescriptiveAccessMetadata.optional
      attribute :relatedResource, Types::Strict::Array.of(RelatedResource).default([].freeze)
      attribute? :adminMetadata, DescriptiveAdminMetadata.optional
      # The version of the related resource.
      attribute? :version, Types::Strict::String
      # URL or other pointer to the location of the related resource information.
      attribute? :valueAt, Types::Strict::String
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
cocina-models-0.100.0 lib/cocina/models/related_resource.rb
cocina-models-0.99.4 lib/cocina/models/related_resource.rb
cocina-models-0.99.3 lib/cocina/models/related_resource.rb
cocina-models-0.99.2 lib/cocina/models/related_resource.rb
cocina-models-0.99.1 lib/cocina/models/related_resource.rb
cocina-models-0.99.0 lib/cocina/models/related_resource.rb
cocina-models-0.98.1 lib/cocina/models/related_resource.rb
cocina-models-0.98.0 lib/cocina/models/related_resource.rb
cocina-models-0.96.0 lib/cocina/models/related_resource.rb
cocina-models-0.95.1 lib/cocina/models/related_resource.rb
cocina-models-0.95.0 lib/cocina/models/related_resource.rb
cocina-models-0.94.2 lib/cocina/models/related_resource.rb
cocina-models-0.94.1 lib/cocina/models/related_resource.rb
cocina-models-0.94.0 lib/cocina/models/related_resource.rb
cocina-models-0.93.1 lib/cocina/models/related_resource.rb
cocina-models-0.93.0 lib/cocina/models/related_resource.rb
cocina-models-0.92.0 lib/cocina/models/related_resource.rb
cocina-models-0.91.4 lib/cocina/models/related_resource.rb
cocina-models-0.91.3 lib/cocina/models/related_resource.rb
cocina-models-0.91.2 lib/cocina/models/related_resource.rb