lib/cocina/models/dro.rb in cocina-models-0.12.0 vs lib/cocina/models/dro.rb in cocina-models-0.13.0

- old
+ new

@@ -24,27 +24,9 @@ Vocab.track, Vocab.webarchive_binary, Vocab.webarchive_seed ].freeze - # Subschema for release tags - class ReleaseTag < Dry::Struct - attribute :to, Types::Strict::String - attribute :what, Types::Strict::String.enum('self', 'collection') - # we use 'when' other places, but that's reserved word, so 'date' it is! - attribute :date, Types::Params::DateTime - attribute :who, Types::Strict::String - attribute :release, Types::Params::Bool - - def self.from_dynamic(dyn) - ReleaseTag.new(to: dyn['to'], - what: dyn['what'], - date: dyn['date'], - who: dyn['who'], - release: dyn['release']) - end - end - # Subschema for access concerns class Access < Dry::Struct attribute :embargoReleaseDate, Types::Params::DateTime.meta(omittable: true) def self.from_dynamic(dyn)