Sha256: 807a1417f115515523646b948065d4acdcabf11e7f5b054126507609dcd10a0f

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

# frozen_string_literal: true

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

      # Returns a single translation provider for the given team
      #
      # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-provider-get
      # @return [RubyLokaliseApi::Resources::TranslationProvider]
      # @param team_id [String]
      # @param provider_id [String, Integer]
      def translation_provider(team_id, provider_id)
        c_r RubyLokaliseApi::Resources::TranslationProvider, :find, [team_id, provider_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/translation_providers.rb