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.



2385
2386
2387
# File 'lib/platform-api/client.rb', line 2385

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



2392
2393
2394
# File 'lib/platform-api/client.rb', line 2392

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