Sha256: ff3733423b44303763580925c14c42df2f96cd3efb054fedfafe1b2ac4228fc0

Contents?: true

Size: 450 Bytes

Versions: 36

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # Metadata for a cocina object.
    class ObjectMetadata < Struct
      # When the object was created.
      attribute? :created, Types::Params::DateTime
      # When the object was modified.
      attribute? :modified, Types::Params::DateTime
      # Key for optimistic locking. The contents of the key is not specified.
      attribute :lock, Types::Strict::String
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
cocina-models-0.89.0 lib/cocina/models/object_metadata.rb
cocina-models-0.88.0 lib/cocina/models/object_metadata.rb
cocina-models-0.87.1 lib/cocina/models/object_metadata.rb
cocina-models-0.87.0 lib/cocina/models/object_metadata.rb
cocina-models-0.86.0 lib/cocina/models/object_metadata.rb
cocina-models-0.85.0 lib/cocina/models/object_metadata.rb
cocina-models-0.84.5 lib/cocina/models/object_metadata.rb
cocina-models-0.84.4 lib/cocina/models/object_metadata.rb
cocina-models-0.84.3 lib/cocina/models/object_metadata.rb
cocina-models-0.84.2 lib/cocina/models/object_metadata.rb
cocina-models-0.84.1 lib/cocina/models/object_metadata.rb
cocina-models-0.84.0 lib/cocina/models/object_metadata.rb
cocina-models-0.83.0 lib/cocina/models/object_metadata.rb
cocina-models-0.82.0 lib/cocina/models/object_metadata.rb
cocina-models-0.81.0 lib/cocina/models/object_metadata.rb
cocina-models-0.80.0 lib/cocina/models/object_metadata.rb