Class: PlatformAPI::PermissionEntity

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

An owned entity including users' permissions.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ PermissionEntity

Returns a new instance of PermissionEntity.



2383
2384
2385
# File 'lib/platform-api/client.rb', line 2383

def initialize(client)
  @client = client
end

Instance Method Details

#list(team_name_or_team_id) ⇒ Object

List permission entities for a team.

Parameters:

  • team_name_or_team_id:

    unique name of team or unique identifier of team



2390
2391
2392
# File 'lib/platform-api/client.rb', line 2390

def list(team_name_or_team_id)
  @client.permission_entity.list(team_name_or_team_id)
end