Sha256: b97556a7f96ba8c4053bc6a54db8d2343f2acef879802cf76a498348ba970b04

Contents?: true

Size: 1.64 KB

Versions: 4

Compression:

Stored size: 1.64 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
      # The preferred display label to use for the descriptive element in access systems.
      attribute? :displayLabel, Types::Strict::String
      attribute? :encoding, Standard.optional
      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
      attribute? :script, DescriptiveValue.optional
      attribute? :source, Source.optional
      # Status of the language relative to other parallel language elements (e.g. the primary language)
      attribute? :status, Types::Strict::String.enum('primary')
      attribute? :standard, Standard.optional
      attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      # URI value of the descriptive element.
      attribute? :uri, Types::Strict::String
      # Value of the descriptive element.
      attribute? :value, Types::Strict::String
      # URL or other pointer to the location of the language information.
      attribute? :valueAt, Types::Strict::String
      attribute? :valueLanguage, DescriptiveValueLanguage.optional
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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