Class: BrickFTP::RESTfulAPI::UnlockUser
- Inherits:
-
Object
- Object
- BrickFTP::RESTfulAPI::UnlockUser
- Includes:
- Command
- Defined in:
- lib/brick_ftp/restful_api/unlock_user.rb
Overview
Unlock a user
Instance Method Summary collapse
-
#call(id) ⇒ BrickFTP::Types::User?
Unlocks a user that has been locked out by Brute Force Login Protection.
Methods included from Command
Instance Method Details
#call(id) ⇒ BrickFTP::Types::User?
Unlocks a user that has been locked out by Brute Force Login Protection.
19 20 21 22 23 |
# File 'lib/brick_ftp/restful_api/unlock_user.rb', line 19 def call(id) res = client.post("/api/rest/v1/users/#{id}/unlock.json") BrickFTP::Types::User.new(**res.symbolize_keys) end |