Sha256: 0f8a5f3b52146c36af15e8b78734987e84b23fe592a215c8f03a19eaadd549e3

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

# frozen_string_literal: true

module RubyLokaliseApi
  module Rest
    module QueuedProcesses
      # Returns all queued processes for the given project
      #
      # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-processes-get
      # @return [RubyLokaliseApi::Collection::QueuedProcess<RubyLokaliseApi::Resources::QueuedProcess>]
      # @param project_id [String]
      # @param params [Hash]
      def queued_processes(project_id, params = {})
        c_r RubyLokaliseApi::Collections::QueuedProcess, :all, project_id, params
      end

      # Returns a queued process for the given project
      #
      # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-process-get
      # @return [RubyLokaliseApi::Resources::QueuedProcess]
      # @param project_id [String]
      # @param process_id [String]
      def queued_process(project_id, process_id)
        c_r RubyLokaliseApi::Resources::QueuedProcess, :find,
            [project_id, process_id]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-lokalise-api-6.0.0 lib/ruby_lokalise_api/rest/queued_processes.rb