Class: BrickFTP::RESTfulAPI::GetPublicKey
- Inherits:
-
Object
- Object
- BrickFTP::RESTfulAPI::GetPublicKey
- Includes:
- Command
- Defined in:
- lib/brick_ftp/restful_api/get_public_key.rb
Overview
Show a public key
Instance Method Summary collapse
-
#call(id) ⇒ BrickFTP::Types::UserPublicKey
Returns a single public key.
Methods included from Command
Instance Method Details
#call(id) ⇒ BrickFTP::Types::UserPublicKey
Returns a single public key.
19 20 21 22 23 |
# File 'lib/brick_ftp/restful_api/get_public_key.rb', line 19 def call(id) res = client.get("/api/rest/v1/public_keys/#{id}.json") BrickFTP::Types::UserPublicKey.new(**res.symbolize_keys) end |