Sha256: f713b65405b428a643b63656774a6a1f2875cad5f296f630297a1550ae7fd545

Contents?: true

Size: 658 Bytes

Versions: 4

Compression:

Stored size: 658 Bytes

Contents

# frozen_string_literal: true

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

      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

4 entries across 4 versions & 1 rubygems

Version Path
ruby-lokalise-api-3.0.0 lib/ruby-lokalise-api/resources/team_user_group.rb
ruby-lokalise-api-2.10.0 lib/ruby-lokalise-api/resources/team_user_group.rb
ruby-lokalise-api-2.9.0.1 lib/ruby-lokalise-api/resources/team_user_group.rb
ruby-lokalise-api-2.9.0 lib/ruby-lokalise-api/resources/team_user_group.rb