Module: Vedeu::Repositories::Storage Private

Extended by:
Storage
Included in:
Events::Aliases, Input::Store, Output::CompressorCache, Vedeu::Renderers, Storage, Store, Vedeu::Runtime::Router
Defined in:
lib/vedeu/repositories/storage.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Provides behaviour for resetting and accessing the storage of various repositories.

Instance Method Summary collapse

Instance Method Details

#reset!void Also known as: reset

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Remove all currently stored data for this repository.



19
20
21
22
23
24
# File 'lib/vedeu/repositories/storage.rb', line 19

def reset!
  Vedeu.log(type:    :reset,
            message: "Resetting repository '#{self.class.name}'")

  @storage = in_memory
end

#storagevoid Also known as: all

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Return whole repository; provides raw access to the storage for this repository.



31
32
33
# File 'lib/vedeu/repositories/storage.rb', line 31

def storage
  @storage ||= in_memory
end