Class: UnFichierApi::Remote

Inherits:
Base
  • Object
show all
Defined in:
lib/un_fichier_api/remote.rb

Class Method Summary collapse

Methods inherited from Base

call, connection

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

.listObject



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