Class: Store::EntityMapper
- Inherits:
-
Object
- Object
- Store::EntityMapper
- Defined in:
- lib/store/entity_mapper.rb
Instance Method Summary collapse
-
#initialize(store) ⇒ EntityMapper
constructor
A new instance of EntityMapper.
- #map(entity) ⇒ Object
- #unmap(entity_class, mapped_entity) ⇒ Object
Constructor Details
#initialize(store) ⇒ EntityMapper
Returns a new instance of EntityMapper.
3 4 5 |
# File 'lib/store/entity_mapper.rb', line 3 def initialize(store) @store = store end |
Instance Method Details
#map(entity) ⇒ Object
7 8 9 |
# File 'lib/store/entity_mapper.rb', line 7 def map(entity) raise NotImplementedError end |
#unmap(entity_class, mapped_entity) ⇒ Object
11 12 13 |
# File 'lib/store/entity_mapper.rb', line 11 def unmap(entity_class, mapped_entity) raise NotImplementedError end |