Class: PlatformAPI::Key
- Inherits:
-
Object
- Object
- PlatformAPI::Key
- Defined in:
- lib/platform-api/client.rb
Overview
Keys represent public SSH keys associated with an account and are used to authorize accounts as they are performing git operations.
Instance Method Summary collapse
-
#info(key_id_or_key_fingerprint) ⇒ Object
Info for existing key.
-
#initialize(client) ⇒ Key
constructor
A new instance of Key.
-
#list ⇒ Object
List existing keys.
Constructor Details
#initialize(client) ⇒ Key
Returns a new instance of Key.
2070 2071 2072 |
# File 'lib/platform-api/client.rb', line 2070 def initialize(client) @client = client end |
Instance Method Details
#info(key_id_or_key_fingerprint) ⇒ Object
Info for existing key.
2077 2078 2079 |
# File 'lib/platform-api/client.rb', line 2077 def info(key_id_or_key_fingerprint) @client.key.info(key_id_or_key_fingerprint) end |
#list ⇒ Object
List existing keys.
2082 2083 2084 |
# File 'lib/platform-api/client.rb', line 2082 def list() @client.key.list() end |