class UnFichierApi::FtpUser
Public Class Methods
create(user: nil, pass: nil, folder_id: nil)
click to toggle source
# 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()
click to toggle source
# File lib/un_fichier_api/ftp_user.rb, line 12 def list call path: action_route('ls') end
remove(user: nil)
click to toggle source
# 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
Private Class Methods
action_route(action_name)
click to toggle source
# File lib/un_fichier_api/ftp_user.rb, line 23 def action_route(action_name) "ftp/users/#{action_name}.cgi" end