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.



2365
2366
2367
# File 'lib/platform-api/client.rb', line 2365

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



2372
2373
2374
# File 'lib/platform-api/client.rb', line 2372

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