Sha256: 2e6d70219dd522740b8ac702ca1ae6df4f9703d34d7ff1e7ed23e09bb743e721
Contents?: true
Size: 1.13 KB
Versions: 14
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true module Lokalise class Client # Returns all orders for the given team # # @see https://lokalise.co/api2docs/curl/#transition-list-all-orders-get # @return [Lokalise::Collection::Order<Lokalise::Resources::Order>] # @param team_id [String] # @param params [Hash] def orders(team_id, params = {}) c_r Lokalise::Collections::Order, :all, team_id, params end # Returns a single order for the given team # # @see https://lokalise.co/api2docs/curl/#transition-retrieve-an-order-get # @return [Lokalise::Resources::Order] # @param team_id [String] # @param order_id [String, Integer] def order(team_id, order_id) c_r Lokalise::Resources::Order, :find, [team_id, order_id] end # Creates an order for the given team # # @see https://lokalise.co/api2docs/curl/#transition-create-an-order-post # @return [Lokalise::Resources::Order] # @param team_id [String] # @param params [Hash] def create_order(team_id, params) c_r Lokalise::Resources::Order, :create, team_id, params end end end
Version data entries
14 entries across 14 versions & 1 rubygems