Class: LazierData::ItemStore
- Inherits:
-
Object
- Object
- LazierData::ItemStore
- Defined in:
- lib/lazier_data/item_store.rb
Constant Summary collapse
- ITEMS_KEY =
:_lazier_data_items
Instance Method Summary collapse
- #[](key) ⇒ Object
- #dig(*path) ⇒ Object
-
#initialize ⇒ ItemStore
constructor
A new instance of ItemStore.
Constructor Details
#initialize ⇒ ItemStore
Returns a new instance of ItemStore.
7 8 9 |
# File 'lib/lazier_data/item_store.rb', line 7 def initialize @store = new_layer end |
Instance Method Details
#[](key) ⇒ Object
19 20 21 |
# File 'lib/lazier_data/item_store.rb', line 19 def [](key) @store[key][ITEMS_KEY] end |