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.
Class Method Summary collapse
-
.reset! ⇒ void
(also: #reset)
private
Remove all currently stored data for this repository.
-
.storage ⇒ void
(also: #all)
private
Return whole repository; provides raw access to the storage for this repository.
Instance Method Summary collapse
-
#reset! ⇒ void
(also: #reset)
private
Remove all currently stored data for this repository.
-
#storage ⇒ void
(also: #all)
private
Return whole repository; provides raw access to the storage for this repository.
Class 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.
17 18 19 20 21 22 |
# File 'lib/vedeu/repositories/storage.rb', line 17 def reset! Vedeu.log(type: :reset, message: "Resetting repository '#{self.class.name}'") @storage = in_memory end |
.storage ⇒ void 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.
29 30 31 |
# File 'lib/vedeu/repositories/storage.rb', line 29 def storage @storage ||= in_memory end |
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.
17 18 19 20 21 22 |
# File 'lib/vedeu/repositories/storage.rb', line 17 def reset! Vedeu.log(type: :reset, message: "Resetting repository '#{self.class.name}'") @storage = in_memory end |
#storage ⇒ void 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.
29 30 31 |
# File 'lib/vedeu/repositories/storage.rb', line 29 def storage @storage ||= in_memory end |