Class: Hexagonal::Mediators::DeleteMediator

Inherits:
Object
  • Object
show all
Defined in:
lib/hexagonal/mediators/delete_mediator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#repository=(value) ⇒ Object

Sets the attribute repository

Parameters:

  • value

    the value to set the attribute repository to.



6
7
8
# File 'lib/hexagonal/mediators/delete_mediator.rb', line 6

def repository=(value)
  @repository = value
end

Instance Method Details

#callObject



8
9
10
# File 'lib/hexagonal/mediators/delete_mediator.rb', line 8

def call
  repository.destroy target
end