Class: Keys::DestroyService
- Inherits:
-
BaseService
- Object
- BaseService
- Keys::DestroyService
- Defined in:
- app/services/keys/destroy_service.rb
Instance Attribute Summary
Attributes inherited from BaseService
Instance Method Summary collapse
-
#destroy_possible?(key) ⇒ Boolean
overridden in EE::Keys::DestroyService.
- #execute(key) ⇒ Object
Methods inherited from BaseService
#initialize, #notification_service
Constructor Details
This class inherits a constructor from Keys::BaseService
Instance Method Details
#destroy_possible?(key) ⇒ Boolean
overridden in EE::Keys::DestroyService
10 11 12 |
# File 'app/services/keys/destroy_service.rb', line 10 def destroy_possible?(key) true end |
#execute(key) ⇒ Object
5 6 7 |
# File 'app/services/keys/destroy_service.rb', line 5 def execute(key) key.destroy if destroy_possible?(key) end |