Sha256: eb536fc3fc671114fed3fa38fe413270e95fa1cf9321b6d82f2533b06d962037

Contents?: true

Size: 1.14 KB

Versions: 7

Compression:

Stored size: 1.14 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)
      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 :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)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cocina-models-0.40.1 lib/cocina/models/related_resource.rb
cocina-models-0.40.0 lib/cocina/models/related_resource.rb
cocina-models-0.39.0 lib/cocina/models/related_resource.rb
cocina-models-0.38.0 lib/cocina/models/related_resource.rb
cocina-models-0.37.0 lib/cocina/models/related_resource.rb
cocina-models-0.36.0 lib/cocina/models/related_resource.rb
cocina-models-0.35.0 lib/cocina/models/related_resource.rb