lib/cocina/models/descriptive_value_language.rb in cocina-models-0.75.0 vs lib/cocina/models/descriptive_value_language.rb in cocina-models-0.76.0
- old
+ new
@@ -2,18 +2,18 @@
module Cocina
module Models
class DescriptiveValueLanguage < Struct
# Code representing the standard or encoding.
- attribute :code, Types::Strict::String.meta(omittable: true)
+ attribute? :code, Types::Strict::String
# URI for the standard or encoding.
- attribute :uri, Types::Strict::String.meta(omittable: true)
+ attribute? :uri, Types::Strict::String
# String describing the standard or encoding.
- attribute :value, Types::Strict::String.meta(omittable: true)
+ attribute? :value, Types::Strict::String
attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
# The version of the standard or encoding.
- attribute :version, Types::Strict::String.meta(omittable: true)
- attribute :source, Source.optional.meta(omittable: true)
- attribute :valueScript, Standard.optional.meta(omittable: true)
+ attribute? :version, Types::Strict::String
+ attribute? :source, Source.optional
+ attribute? :valueScript, Standard.optional
end
end
end