lib/cocina/models/dark_access.rb in cocina-models-0.75.0 vs lib/cocina/models/dark_access.rb in cocina-models-0.76.0

- old
+ new

@@ -2,14 +2,14 @@ module Cocina module Models class DarkAccess < Struct # Access level. - attribute :view, Types::Strict::String.default('dark').enum('dark').meta(omittable: true) + attribute? :view, Types::Strict::String.default('dark').enum('dark') # Download access level. - attribute :download, Types::Strict::String.default('none').enum('none').meta(omittable: true) + attribute? :download, Types::Strict::String.default('none').enum('none') # Not used for this access type, must be null. - attribute :location, Types::Strict::String.optional.enum('').meta(omittable: true) - attribute :controlledDigitalLending, Types::Strict::Bool.enum(false).meta(omittable: true) + attribute? :location, Types::Strict::String.optional.enum('') + attribute? :controlledDigitalLending, Types::Strict::Bool.default(false).enum(false) end end end