Module: RubyLokaliseApi::Rest::QueuedProcesses
- Included in:
- RubyLokaliseApi::Rest
- Defined in:
- lib/ruby_lokalise_api/rest/queued_processes.rb
Instance Method Summary collapse
-
#queued_process(project_id, process_id) ⇒ RubyLokaliseApi::Resources::QueuedProcess
Returns a single queued process.
-
#queued_processes(project_id, req_params = {}) ⇒ RubyLokaliseApi::Collections::QueuedProcesses
Returns queued processes.
Instance Method Details
#queued_process(project_id, process_id) ⇒ RubyLokaliseApi::Resources::QueuedProcess
Returns a single queued process
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
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 |