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

#destroy_possible?(key) ⇒ Boolean

overridden in EE::Keys::DestroyService

Returns:

  • (Boolean)

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