Sha256: 2493bef0806fd50b8329e3f017f749958ad784700649eaf6638babd99f900cfc

Contents?: true

Size: 701 Bytes

Versions: 7

Compression:

Stored size: 701 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],
               [: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

7 entries across 7 versions & 1 rubygems

Version Path
ruby-lokalise-api-4.4.0 lib/ruby-lokalise-api/resources/team_user_group.rb
ruby-lokalise-api-4.3.1 lib/ruby-lokalise-api/resources/team_user_group.rb
ruby-lokalise-api-4.3.0 lib/ruby-lokalise-api/resources/team_user_group.rb
ruby-lokalise-api-4.2.0 lib/ruby-lokalise-api/resources/team_user_group.rb
ruby-lokalise-api-4.1.0 lib/ruby-lokalise-api/resources/team_user_group.rb
ruby-lokalise-api-4.0.0 lib/ruby-lokalise-api/resources/team_user_group.rb
ruby-lokalise-api-3.1.0 lib/ruby-lokalise-api/resources/team_user_group.rb