Sha256: e9383a107d1bba5f687c72ed5c401b2f73c6863329d0caffbd7f6ab86b69f4c7

Contents?: true

Size: 1.95 KB

Versions: 22

Compression:

Stored size: 1.95 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class RelatedResource < Struct
      # The relationship of the related resource to the described resource.
      attribute :type, Types::Strict::String.meta(omittable: true)
      # Status of the related resource relative to other related resources.
      attribute :status, Types::Strict::String.meta(omittable: true)
      # The preferred display label to use for the related resource in access systems.
      attribute :displayLabel, Types::Strict::String.meta(omittable: true)
      attribute :title, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      attribute :contributor, Types::Strict::Array.of(Contributor).meta(omittable: true)
      attribute :event, Types::Strict::Array.of(Event).meta(omittable: true)
      attribute :form, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      attribute :language, Types::Strict::Array.of(Language).meta(omittable: true)
      attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      attribute :standard, Standard.optional.meta(omittable: true)
      attribute :subject, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      # Stanford persistent URL associated with the related resource.
      attribute :purl, Types::Strict::String.meta(omittable: true)
      attribute :access, DescriptiveAccessMetadata.optional.meta(omittable: true)
      attribute :relatedResource, Types::Strict::Array.of(RelatedResource).meta(omittable: true)
      attribute :adminMetadata, DescriptiveAdminMetadata.optional.meta(omittable: true)
      # The version of the related resource.
      attribute :version, Types::Strict::String.meta(omittable: true)
      # URL or other pointer to the location of the related resource information.
      attribute :valueAt, Types::Strict::String.meta(omittable: true)
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cocina-models-0.60.0 lib/cocina/models/related_resource.rb
cocina-models-0.59.1 lib/cocina/models/related_resource.rb
cocina-models-0.59.0 lib/cocina/models/related_resource.rb
cocina-models-0.58.2 lib/cocina/models/related_resource.rb
cocina-models-0.57.0 lib/cocina/models/related_resource.rb
cocina-models-0.56.1 lib/cocina/models/related_resource.rb
cocina-models-0.56.0 lib/cocina/models/related_resource.rb
cocina-models-0.55.0 lib/cocina/models/related_resource.rb
cocina-models-0.54.0 lib/cocina/models/related_resource.rb
cocina-models-0.54.0.beta.2 lib/cocina/models/related_resource.rb
cocina-models-0.53.1 lib/cocina/models/related_resource.rb
cocina-models-0.54.0.beta.1 lib/cocina/models/related_resource.rb
cocina-models-0.53.0 lib/cocina/models/related_resource.rb
cocina-models-0.52.0 lib/cocina/models/related_resource.rb
cocina-models-0.51.0 lib/cocina/models/related_resource.rb
cocina-models-0.50.0 lib/cocina/models/related_resource.rb
cocina-models-0.49.0 lib/cocina/models/related_resource.rb
cocina-models-0.48.0 lib/cocina/models/related_resource.rb
cocina-models-0.47.2 lib/cocina/models/related_resource.rb
cocina-models-0.47.1 lib/cocina/models/related_resource.rb