Sha256: 03df5508a4ee2b5a453624a8109c35ae7256da3b9ba3b32a268daa9e441b85a8

Contents?: true

Size: 957 Bytes

Versions: 3

Compression:

Stored size: 957 Bytes

Contents

# frozen_string_literal: true

module Lokalise
  class Client
    # Returns all translation providers for the given team
    #
    # @see https://lokalise.co/api2docs/ruby/#transition-list-all-providers-get
    # @return [Lokalise::Collection::TranslationProvider<Lokalise::Resources::TranslationProvider>]
    # @param team_id [String]
    # @param params [Hash]
    def translation_providers(team_id, params = {})
      c_r Lokalise::Collections::TranslationProvider, :all, team_id, params
    end

    # Returns a single translation provider for the given team
    #
    # @see https://lokalise.co/api2docs/ruby/#transition-retrieve-a-provider-get
    # @return [Lokalise::Resources::TranslationProvider]
    # @param team_id [String]
    # @param provider_id [String, Integer]
    def translation_provider(team_id, provider_id)
      c_r Lokalise::Resources::TranslationProvider, :find, [team_id, provider_id]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-lokalise-api-2.10.0 lib/ruby-lokalise-api/rest/translation_providers.rb
ruby-lokalise-api-2.9.0.1 lib/ruby-lokalise-api/rest/translation_providers.rb
ruby-lokalise-api-2.9.0 lib/ruby-lokalise-api/rest/translation_providers.rb