lib/dor/services/client/object_metadata.rb in dor-services-client-8.9.0 vs lib/dor/services/client/object_metadata.rb in dor-services-client-9.0.0

- old
+ new

@@ -7,14 +7,15 @@ class Client # An object representing metadata about the cocina object returned by the object show method class ObjectMetadata extend Deprecation - attr_reader :created_at, :updated_at + attr_reader :created_at, :updated_at, :etag - def initialize(created_at:, updated_at:) + def initialize(created_at:, updated_at:, etag: nil) @created_at = created_at @updated_at = updated_at + @etag = etag end def [](key) case key when 'Last-Modified'