Sha256: 7c4a11e794a5d2a7404c4c0d1af19941f6ce2e772ac1d86901418e317f3e8cc4

Contents?: true

Size: 1.81 KB

Versions: 6

Compression:

Stored size: 1.81 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class DescriptiveValue < Struct
      attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      # 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).meta(omittable: true)
      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).meta(omittable: true)
      attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
      attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).meta(omittable: true)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cocina-models-0.45.0 lib/cocina/models/descriptive_value.rb
cocina-models-0.44.0 lib/cocina/models/descriptive_value.rb
cocina-models-0.43.0 lib/cocina/models/descriptive_value.rb
cocina-models-0.42.1 lib/cocina/models/descriptive_value.rb
cocina-models-0.42.0 lib/cocina/models/descriptive_value.rb
cocina-models-0.41.0 lib/cocina/models/descriptive_value.rb