Class: Keys::DestroyService
- Inherits:
-
BaseService
- Object
- BaseService
- Keys::DestroyService
- Defined in:
- app/services/keys/destroy_service.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from BaseService
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 |