Module: Gitlab::Client::Keys
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/keys.rb
Overview
Defines methods related to keys.
Instance Method Summary collapse
-
#key(id) ⇒ Gitlab::ObjectifiedHash
Gets information about a key.
-
#key_by_fingerprint(fingerprint) ⇒ Gitlab::ObjectifiedHash
Gets information about a key by key fingerprint.
Instance Method Details
#key(id) ⇒ Gitlab::ObjectifiedHash
Gets information about a key.
14 15 16 |
# File 'lib/gitlab/client/keys.rb', line 14 def key(id) get("/keys/#{id}") end |
#key_by_fingerprint(fingerprint) ⇒ Gitlab::ObjectifiedHash
Gets information about a key by key fingerprint.
25 26 27 |
# File 'lib/gitlab/client/keys.rb', line 25 def key_by_fingerprint(fingerprint) get('/keys', query: { fingerprint: fingerprint }) end |