Class: UnFichierApi::FtpUser
- Defined in:
- lib/un_fichier_api/ftp_user.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.create(user: nil, pass: nil, folder_id: nil) ⇒ Object
7 8 9 10 |
# File 'lib/un_fichier_api/ftp_user.rb', line 7 def create(user: nil, pass: nil, folder_id: nil) body = body_from_parameters parameters: method(__method__).parameters, method_binding: binding call path: action_route('add'), body: body end |
.list ⇒ Object
12 13 14 |
# File 'lib/un_fichier_api/ftp_user.rb', line 12 def list call path: action_route('ls') end |
.remove(user: nil) ⇒ Object
16 17 18 19 |
# File 'lib/un_fichier_api/ftp_user.rb', line 16 def remove(user: nil) body = body_from_parameters parameters: method(__method__).parameters, method_binding: binding call path: action_route('rm'), body: body end |