Class: Hexagonal::Mediators::DeleteMediator
- Inherits:
-
Object
- Object
- Hexagonal::Mediators::DeleteMediator
- Defined in:
- lib/hexagonal/mediators/delete_mediator.rb
Instance Attribute Summary collapse
-
#repository ⇒ Object
writeonly
Sets the attribute repository.
Instance Method Summary collapse
Instance Attribute Details
#repository=(value) ⇒ Object
Sets the attribute repository
6 7 8 |
# File 'lib/hexagonal/mediators/delete_mediator.rb', line 6 def repository=(value) @repository = value end |
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'lib/hexagonal/mediators/delete_mediator.rb', line 8 def call repository.destroy target end |