lib/blobby/logging_store.rb in blobby-1.1.0 vs lib/blobby/logging_store.rb in blobby-1.1.1
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Blobby
# A store decorator that logs writes and deletes
#
class LoggingStore
@@ -26,9 +28,10 @@
attr_reader :logger
attr_reader :store
attr_reader :store_name
+ # Represents an object in the store.
class StoredObject
def initialize(object, callbacks = {})
@object = object
@on_write = callbacks[:on_write] || -> {}