lib/cocina/models/descriptive_value.rb in cocina-models-0.79.0 vs lib/cocina/models/descriptive_value.rb in cocina-models-0.80.0
- old
+ new
@@ -1,8 +1,9 @@
# frozen_string_literal: true
module Cocina
module Models
+ # Default value model for descriptive elements.
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.