Class: Keys::DestroyService

Inherits:
BaseService show all
Defined in:
app/services/keys/destroy_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#params, #user

Instance Method Summary collapse

Methods inherited from BaseService

#initialize, #notification_service

Constructor Details

This class inherits a constructor from Keys::BaseService

Instance Method Details

#execute(key) ⇒ Object


5
6
7
8
9
# File 'app/services/keys/destroy_service.rb', line 5

def execute(key)
  return unless destroy_possible?(key)

  destroy(key)
end