Class: Gitlab::Audit::DeployKeyAuthor

Inherits:
NullAuthor
  • Object
show all
Defined in:
lib/gitlab/audit/deploy_key_author.rb

Instance Attribute Summary

Attributes inherited from NullAuthor

#id

Instance Method Summary collapse

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

#nameObject



10
11
12
# File 'lib/gitlab/audit/deploy_key_author.rb', line 10

def name
  @name || _('Deploy Key')
end