Lokalise APIv2 Ruby SDK

Ruby interface for the Lokalise APIv2 that represents returned data as Ruby objects.

View the Project on GitHub lokalise/ruby-lokalise-api




Queued processes

Fetch queued processes

Doc

@client.queued_processes(project_id) # Input:
                                     ## project_id (string, required)
                                     # Output:
                                     ## Collection of queued processes

For example:

project_id = '123.abc'
params = {
  page: 2,
  limit: 3
}

processes = @client.queued_processes project_id, params

processes[0].status # => 'finished'

Alternatively:

project = @client.project project_id
processes = project.queued_processes params

Fetch a single queued process

Doc

@client.queued_process(project_id, process_id) # Input:
                                               ## project_id (string, required)
                                               ## process_id (string, required)
                                               # Output:
                                               ## Queued process resource

For example:

project_id = '123.abc'
process_id = '1234'

process = @client.queued_process project_id, process_id

process.status # => 'finished'

Alternatively:

project = @client.project project_id
process = project.queued_process process_id