Class: Mihari::Services::ArtifactDestroyer

Inherits:
Mihari::Service show all
Defined in:
lib/mihari/services/destroyers.rb

Instance Method Summary collapse

Methods inherited from Mihari::Service

call, #result, result

Instance Method Details

#call(id) ⇒ Object

Parameters:

  • id (Integer)


18
19
20
# File 'lib/mihari/services/destroyers.rb', line 18

def call(id)
  Models::Artifact.find(id).destroy
end