Sha256: f56ec2574c7254c150326272ab9d35cfc581a26af4d38784b413f769694e7074

Contents?: true

Size: 704 Bytes

Versions: 3

Compression:

Stored size: 704 Bytes

Contents

# frozen_string_literal: true

module Lokalise
  module Resources
    class TeamUserGroup < Base
      DATA_KEY = 'Group'
      ID_KEY = 'group_id'
      supports :update, :destroy,
               [:add_projects, '/projects/add', :update],
               [:remove_projects, '/projects/remove', :update],
               [:add_users, '/members/add', :update],
               [:remove_users, '/members/remove', :update],
               [:reload_data, '', :find]

      class << self
        def endpoint(team_id, team_user_group_id = nil, *actions)
          path_from teams: team_id,
                    groups: [team_user_group_id, *actions]
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-lokalise-api-5.0.0 lib/ruby-lokalise-api/resources/team_user_group.rb
ruby-lokalise-api-4.5.1 lib/ruby-lokalise-api/resources/team_user_group.rb
ruby-lokalise-api-4.5.0 lib/ruby-lokalise-api/resources/team_user_group.rb