Sha256: da12e09e74104610872f0fd4cc678ceed3384b413f85a0ff3c899941ada6401a

Contents?: true

Size: 1.89 KB

Versions: 24

Compression:

Stored size: 1.89 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class Language < Struct
      attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).default([].freeze)
      # 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 :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      # 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).default([].freeze)
      # 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)
      # URL or other pointer to the location of the language information.
      attribute :valueAt, Types::Strict::String.meta(omittable: true)
      attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
cocina-models-0.75.0 lib/cocina/models/language.rb
cocina-models-0.74.1 lib/cocina/models/language.rb
cocina-models-0.74.0 lib/cocina/models/language.rb
cocina-models-0.73.6 lib/cocina/models/language.rb
cocina-models-0.73.5 lib/cocina/models/language.rb
cocina-models-0.73.4 lib/cocina/models/language.rb
cocina-models-0.73.3 lib/cocina/models/language.rb
cocina-models-0.73.2 lib/cocina/models/language.rb
cocina-models-0.73.1 lib/cocina/models/language.rb
cocina-models-0.73.0 lib/cocina/models/language.rb
cocina-models-0.72.0 lib/cocina/models/language.rb
cocina-models-0.71.0 lib/cocina/models/language.rb
cocina-models-0.70.0 lib/cocina/models/language.rb
cocina-models-0.69.2 lib/cocina/models/language.rb
cocina-models-0.69.1 lib/cocina/models/language.rb
cocina-models-0.69.0 lib/cocina/models/language.rb
cocina-models-0.68.0 lib/cocina/models/language.rb
cocina-models-0.67.1 lib/cocina/models/language.rb
cocina-models-0.67.0 lib/cocina/models/language.rb
cocina-models-0.66.0 lib/cocina/models/language.rb