Class: Store::Repo
- Inherits:
-
Object
- Object
- Store::Repo
- Defined in:
- lib/store/repo.rb
Instance Method Summary collapse
- #build(entity, *args) ⇒ Object
-
#initialize(entity_classes, data_mapping, entity_mapping) ⇒ Repo
constructor
A new instance of Repo.
- #remove(entity) ⇒ Object
- #save(entites) ⇒ Object
Constructor Details
Instance Method Details
#build(entity, *args) ⇒ Object
9 10 11 |
# File 'lib/store/repo.rb', line 9 def build(entity, *args) @store.build(entity, *args) end |
#remove(entity) ⇒ Object
18 19 20 21 |
# File 'lib/store/repo.rb', line 18 def remove(entity) @store.remove(entity) true end |
#save(entites) ⇒ Object
13 14 15 16 |
# File 'lib/store/repo.rb', line 13 def save(entites) @store.save(entites) true end |