Module: RubyLokaliseApi::Rest::QueuedProcesses

Included in:
RubyLokaliseApi::Rest
Defined in:
lib/ruby_lokalise_api/rest/queued_processes.rb

Instance Method Summary collapse

Instance Method Details

#queued_process(project_id, process_id) ⇒ RubyLokaliseApi::Resources::QueuedProcess

Returns a single queued process

Parameters:

  • project_id (String)
  • process_id (String, Integer)

Returns:

See Also:



12
13
14
15
16
17
18
# File 'lib/ruby_lokalise_api/rest/queued_processes.rb', line 12

def queued_process(project_id, process_id)
  params = { query: [project_id, process_id] }

  data = endpoint(name: 'QueuedProcesses', params: params).do_get

  resource 'QueuedProcess', data
end

#queued_processes(project_id, req_params = {}) ⇒ RubyLokaliseApi::Collections::QueuedProcesses

Returns queued processes

Parameters:

  • project_id (String)
  • req_params (Hash) (defaults to: {})

Returns:

See Also:



26
27
28
29
30
31
32
33
# File 'lib/ruby_lokalise_api/rest/queued_processes.rb', line 26

def queued_processes(project_id, req_params = {})
  name = 'QueuedProcesses'
  params = { query: project_id, req: req_params }

  data = endpoint(name: name, params: params).do_get

  collection name, data
end