Class: UnFichierApi::Remote
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.info(id: nil) ⇒ Object
7 8 9 10 |
# File 'lib/un_fichier_api/remote.rb', line 7 def info(id: nil) body = body_from_parameters parameters: method(__method__).parameters, method_binding: binding call path: action_route('info'), body: body end |
.list ⇒ Object
12 13 14 |
# File 'lib/un_fichier_api/remote.rb', line 12 def list call path: action_route('ls') end |
.request(urls: [], folder_id: nil, headers: {}) ⇒ Object
16 17 18 19 |
# File 'lib/un_fichier_api/remote.rb', line 16 def request(urls: [], folder_id: nil, headers: {}) body = body_from_parameters parameters: method(__method__).parameters, method_binding: binding call path: action_route('request'), body: body end |