Sha256: 71c95d6c6107a7aadbf3326c276a415af261f23ef05f866a4063f8adcb8c4ba7

Contents?: true

Size: 1.67 KB

Versions: 3

Compression:

Stored size: 1.67 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class Language < Struct
      attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).meta(omittable: true)
      # Code value of the descriptive element.
      attribute :code, Types::Strict::String.meta(omittable: true)
      # The preferred display label to use for the descriptive element in access systems.
      attribute :displayLabel, Types::Strict::String.meta(omittable: true)
      attribute :encoding, Standard.optional.meta(omittable: true)
      attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      # present for mapping to additional schemas in the future and for consistency but not otherwise used
      attribute :qualifier, Types::Strict::String.meta(omittable: true)
      attribute :script, DescriptiveValue.optional.meta(omittable: true)
      attribute :source, Source.optional.meta(omittable: true)
      # Status of the language relative to other parallel language elements (e.g. the primary language)
      attribute :status, Types::Strict::String.enum('primary').meta(omittable: true)
      attribute :standard, Standard.optional.meta(omittable: true)
      attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      # URI value of the descriptive element.
      attribute :uri, Types::Strict::String.meta(omittable: true)
      # Value of the descriptive element.
      attribute :value, Types::Strict::String.meta(omittable: true)
      attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cocina-models-0.45.0 lib/cocina/models/language.rb
cocina-models-0.44.0 lib/cocina/models/language.rb
cocina-models-0.43.0 lib/cocina/models/language.rb