Class: GpgKeys::CreateService
- Inherits:
-
Keys::BaseService
- Object
- Keys::BaseService
- GpgKeys::CreateService
- Defined in:
- app/services/gpg_keys/create_service.rb
Instance Attribute Summary
Attributes inherited from Keys::BaseService
Instance Method Summary collapse
Methods inherited from Keys::BaseService
#initialize, #notification_service
Constructor Details
This class inherits a constructor from Keys::BaseService
Instance Method Details
#execute ⇒ Object
5 6 7 8 9 |
# File 'app/services/gpg_keys/create_service.rb', line 5 def execute key = create(params) notification_service.new_gpg_key(key) if key.persisted? key end |