lib/cocina/models/dro.rb in cocina-models-0.2.0 vs lib/cocina/models/dro.rb in cocina-models-0.3.0

- old
+ new

@@ -8,10 +8,10 @@ class DRO < Dry::Struct attribute :externalIdentifier, Types::Strict::String attribute :type, Types::Strict::String attribute :label, Types::Strict::String attribute :access, Dry::Struct.meta(omittable: true) do - attribute :embargoReleaseDate, Types::Params::Date + attribute :embargoReleaseDate, Types::Params::DateTime end def self.from_dynamic(d) params = { externalIdentifier: d['externalIdentifier'],