Class: Gitlab::Audit::DeployKeyAuthor
- Inherits:
-
NullAuthor
- Object
- NullAuthor
- Gitlab::Audit::DeployKeyAuthor
- Defined in:
- lib/gitlab/audit/deploy_key_author.rb
Instance Attribute Summary
Attributes inherited from NullAuthor
Instance Method Summary collapse
-
#initialize(name: nil) ⇒ DeployKeyAuthor
constructor
A new instance of DeployKeyAuthor.
- #name ⇒ Object
Methods inherited from NullAuthor
#current_sign_in_ip, for, #full_path
Constructor Details
#initialize(name: nil) ⇒ DeployKeyAuthor
Returns a new instance of DeployKeyAuthor.
6 7 8 |
# File 'lib/gitlab/audit/deploy_key_author.rb', line 6 def initialize(name: nil) super(id: -3, name: name) end |
Instance Method Details
#name ⇒ Object
10 11 12 |
# File 'lib/gitlab/audit/deploy_key_author.rb', line 10 def name @name || _('Deploy key') end |