Sha256: f41b943aa00c3f038263b1eaf9f2d9a5b540c011547538b93aba7630249a8491

Contents?: true

Size: 1.98 KB

Versions: 1

Compression:

Stored size: 1.98 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class Title < Struct
      attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([])
      attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([])
      attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([])
      # String or integer value of the descriptive element.
      attribute :value, Types::Nominal::Any.meta(omittable: true)
      # Type of value provided by the descriptive element.
      attribute :type, Types::Strict::String.meta(omittable: true)
      # Status of the descriptive element value relative to other instances of the element.
      attribute :status, Types::Strict::String.meta(omittable: true)
      # Code value of the descriptive element.
      attribute :code, Types::Strict::String.meta(omittable: true)
      # URI value of the descriptive element.
      attribute :uri, Types::Strict::String.meta(omittable: true)
      attribute :standard, Standard.optional.meta(omittable: true)
      attribute :encoding, Standard.optional.meta(omittable: true)
      attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([])
      attribute :source, Source.optional.meta(omittable: true)
      # The preferred display label to use for the descriptive element in access systems.
      attribute :displayLabel, Types::Strict::String.meta(omittable: true)
      # A term providing information about the circumstances of the statement (e.g., approximate dates).
      attribute :qualifier, Types::Strict::String.meta(omittable: true)
      attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
      attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
      # URL or other pointer to the location of the value of the descriptive element.
      attribute :valueAt, Types::Strict::String.meta(omittable: true)
      attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).default([])
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cocina-models-0.63.0 lib/cocina/models/title.rb