lib/cocina/models/file.rb in cocina-models-0.25.0 vs lib/cocina/models/file.rb in cocina-models-0.26.0
- old
+ new
@@ -48,13 +48,13 @@
attribute :filename, Types::String.optional.default(nil)
attribute :use, Types::String.enum('transcription').optional.meta(omittable: true)
attribute :size, Types::Coercible::Integer.optional.default(nil)
attribute :hasMessageDigests, Types::Strict::Array.of(Fixity).default([].freeze)
attribute :hasMimeType, Types::String.optional.meta(omittable: true)
- attribute(:presentation, Presentation.optional.meta(omittable: true))
+ attribute :presentation, Presentation.optional.meta(omittable: true)
attribute :version, Types::Coercible::Integer
- attribute(:identification, Identification.optional.meta(omittable: true))
- attribute(:structural, Structural.optional.meta(omittable: true))
+ attribute :identification, Identification.optional.meta(omittable: true)
+ attribute :structural, Structural.optional.meta(omittable: true)
def self.from_dynamic(dyn)
File.new(dyn)
end