Class: YamlDepositRepository
- Inherits:
-
DepositRepository
- Object
- DepositRepository
- YamlDepositRepository
- Defined in:
- lib/vendra/infrastructure/persistence/deposits/yaml_deposit_repository.rb
Class Method Summary collapse
Methods inherited from DepositRepository
Class Method Details
.find ⇒ Object
11 12 13 14 15 |
# File 'lib/vendra/infrastructure/persistence/deposits/yaml_deposit_repository.rb', line 11 def find store.transaction do store["deposit"] end end |
.insert(deposit) ⇒ Object
5 6 7 8 9 |
# File 'lib/vendra/infrastructure/persistence/deposits/yaml_deposit_repository.rb', line 5 def insert(deposit) store.transaction do store["deposit"] = deposit end end |
.update(deposit) ⇒ Object
17 18 19 20 21 |
# File 'lib/vendra/infrastructure/persistence/deposits/yaml_deposit_repository.rb', line 17 def update(deposit) store.transaction do store["deposit"] = deposit end end |