Class: IronHide::Storage Private
- Inherits:
-
Object
- Object
- IronHide::Storage
- Defined in:
- lib/iron_hide/storage.rb,
lib/iron_hide/storage/file_adapter.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: FileAdapter
Constant Summary collapse
- ADAPTERS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ file: :FileAdapter }
Instance Attribute Summary collapse
- #adapter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(adapter_type) ⇒ Storage
constructor
private
A new instance of Storage.
- #where(opts = {}) ⇒ Object private
Constructor Details
#initialize(adapter_type) ⇒ Storage
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.
Returns a new instance of Storage.
16 17 18 |
# File 'lib/iron_hide/storage.rb', line 16 def initialize(adapter_type) @adapter = self.class.const_get(ADAPTERS[adapter_type]).new end |
Instance Attribute Details
#adapter ⇒ Object (readonly)
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.
14 15 16 |
# File 'lib/iron_hide/storage.rb', line 14 def adapter @adapter end |
Instance Method Details
#where(opts = {}) ⇒ Object
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.
21 22 23 |
# File 'lib/iron_hide/storage.rb', line 21 def where(opts = {}) adapter.where(opts) end |