Sha256: 6ad9e9941de4e65892c2dbe1a86db38dc382d5a62efe47e41456b4f504be6679

Contents?: true

Size: 1.62 KB

Versions: 11

Compression:

Stored size: 1.62 KB

Contents

# frozen_string_literal: true

module Lokalise
  class Client
    # Returns all team users for the given team
    #
    # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-team-users-get
    # @return [Lokalise::Collection::TeamUser<Lokalise::Resources::TeamUser>]
    # @param team_id [String]
    # @param params [Hash]
    def team_users(team_id, params = {})
      c_r Lokalise::Collections::TeamUser, :all, team_id, params
    end

    # Returns team user from the given team
    #
    # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-team-user-get
    # @return [Lokalise::Resources::TeamUser]
    # @param team_id [String]
    # @param user_id [String, Integer]
    def team_user(team_id, user_id)
      c_r Lokalise::Resources::TeamUser, :find, [team_id, user_id]
    end

    # Updates team user for the given team
    #
    # @see https://app.lokalise.com/api2docs/curl/#transition-update-a-team-user-put
    # @return [Lokalise::Resources::TeamUser]
    # @param team_id [String]
    # @param user_id [String, Integer]
    # @param params [Hash]
    def update_team_user(team_id, user_id, params)
      c_r Lokalise::Resources::TeamUser, :update, [team_id, user_id], params
    end

    # Deletes team user from the given team
    #
    # @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-team-user-delete
    # @return [Lokalise::Resources::TeamUser]
    # @param team_id [String]
    # @param user_id [String, Integer]
    def destroy_team_user(team_id, user_id)
      c_r Lokalise::Resources::TeamUser, :destroy, [team_id, user_id]
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby-lokalise-api-5.0.0 lib/ruby-lokalise-api/rest/team_users.rb
ruby-lokalise-api-4.5.1 lib/ruby-lokalise-api/rest/team_users.rb
ruby-lokalise-api-4.5.0 lib/ruby-lokalise-api/rest/team_users.rb
ruby-lokalise-api-4.4.0 lib/ruby-lokalise-api/rest/team_users.rb
ruby-lokalise-api-4.3.1 lib/ruby-lokalise-api/rest/team_users.rb
ruby-lokalise-api-4.3.0 lib/ruby-lokalise-api/rest/team_users.rb
ruby-lokalise-api-4.2.0 lib/ruby-lokalise-api/rest/team_users.rb
ruby-lokalise-api-4.1.0 lib/ruby-lokalise-api/rest/team_users.rb
ruby-lokalise-api-4.0.0 lib/ruby-lokalise-api/rest/team_users.rb
ruby-lokalise-api-3.1.0 lib/ruby-lokalise-api/rest/team_users.rb
ruby-lokalise-api-3.0.0 lib/ruby-lokalise-api/rest/team_users.rb