Sha256: 6e7a9dc36a9bafd8e7d2bb5cc3df7055fec16978b8b147981f0613ee6796af3e

Contents?: true

Size: 1.89 KB

Versions: 4

Compression:

Stored size: 1.89 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class DescriptiveValue < Struct
      attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      # String or integer value of the descriptive element.
      attribute? :value, Types::Nominal::Any
      # Type of value provided by the descriptive element. See https://github.com/sul-dlss/cocina-models/blob/main/docs/description_types.md for valid types.
      attribute? :type, Types::Strict::String
      # Status of the descriptive element value relative to other instances of the element.
      attribute? :status, Types::Strict::String
      # Code value of the descriptive element.
      attribute? :code, Types::Strict::String
      # URI value of the descriptive element.
      attribute? :uri, Types::Strict::String
      attribute? :standard, Standard.optional
      attribute? :encoding, Standard.optional
      attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute? :source, Source.optional
      # The preferred display label to use for the descriptive element in access systems.
      attribute? :displayLabel, Types::Strict::String
      # A term providing information about the circumstances of the statement (e.g., approximate dates).
      attribute? :qualifier, Types::Strict::String
      attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute? :valueLanguage, DescriptiveValueLanguage.optional
      # URL or other pointer to the location of the value of the descriptive element.
      attribute? :valueAt, Types::Strict::String
      attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).default([].freeze)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cocina-models-0.79.0 lib/cocina/models/descriptive_value.rb
cocina-models-0.78.0 lib/cocina/models/descriptive_value.rb
cocina-models-0.77.0 lib/cocina/models/descriptive_value.rb
cocina-models-0.76.0 lib/cocina/models/descriptive_value.rb