Class: Storing::Deleter
- Inherits:
-
AbstractDeleter
- Object
- AbstractDeleter
- Storing::Deleter
- Defined in:
- lib/storing/deleter.rb
Instance Attribute Summary collapse
-
#entity ⇒ Object
readonly
Returns the value of attribute entity.
-
#mapper ⇒ Object
readonly
Returns the value of attribute mapper.
-
#store ⇒ Object
readonly
Returns the value of attribute store.
Instance Method Summary collapse
-
#initialize(entity, mapper, store) ⇒ Deleter
constructor
A new instance of Deleter.
- #insert ⇒ Object
Methods inherited from AbstractDeleter
Constructor Details
#initialize(entity, mapper, store) ⇒ Deleter
Returns a new instance of Deleter.
8 9 10 11 12 |
# File 'lib/storing/deleter.rb', line 8 def initialize entity, mapper, store @entity = entity @mapper = mapper @store = store end |
Instance Attribute Details
#entity ⇒ Object (readonly)
Returns the value of attribute entity.
6 7 8 |
# File 'lib/storing/deleter.rb', line 6 def entity @entity end |
#mapper ⇒ Object (readonly)
Returns the value of attribute mapper.
6 7 8 |
# File 'lib/storing/deleter.rb', line 6 def mapper @mapper end |
#store ⇒ Object (readonly)
Returns the value of attribute store.
6 7 8 |
# File 'lib/storing/deleter.rb', line 6 def store @store end |
Instance Method Details
#insert ⇒ Object
14 15 16 |
# File 'lib/storing/deleter.rb', line 14 def insert store.delete(data) end |