Class: GpgKeys::CreateService

Inherits:
Keys::BaseService show all
Defined in:
app/services/gpg_keys/create_service.rb

Instance Attribute Summary

Attributes inherited from Keys::BaseService

#params, #user

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

#executeObject



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