Class: BrickFTP::RESTfulAPI::DeletePublicKey

Inherits:
Object
  • Object
show all
Includes:
Command
Defined in:
lib/brick_ftp/restful_api/delete_public_key.rb

Overview

Delete a public key

Instance Method Summary collapse

Methods included from Command

included, #initialize

Instance Method Details

#call(id) ⇒ Object

Deletes the specified public key.

Parameters:

  • id (Integer)

    Globally unique identifier of each public key. Each public key is given an ID automatically upon creation.



17
18
19
20
# File 'lib/brick_ftp/restful_api/delete_public_key.rb', line 17

def call(id)
  client.delete("/api/rest/v1/public_keys/#{id}.json")
  true
end