Class: BrickFTP::RESTfulAPI::DeleteUser
- Inherits:
-
Object
- Object
- BrickFTP::RESTfulAPI::DeleteUser
- Includes:
- Command
- Defined in:
- lib/brick_ftp/restful_api/delete_user.rb
Overview
Delete a user
Instance Method Summary collapse
-
#call(id) ⇒ Object
Deletes the specified user.
Methods included from Command
Instance Method Details
#call(id) ⇒ Object
Deletes the specified user.
For additional security, this method requires reauthentication when updating a password unless an API key is used.
19 20 21 22 |
# File 'lib/brick_ftp/restful_api/delete_user.rb', line 19 def call(id) client.delete("/api/rest/v1/users/#{id}.json") true end |