Class: PlatformAPI::TeamFeature

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

Overview

A team feature represents a feature enabled on a team account.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ TeamFeature

Returns a new instance of TeamFeature.



3219
3220
3221
# File 'lib/platform-api/client.rb', line 3219

def initialize(client)
  @client = client
end

Instance Method Details

#info(team_name_or_team_id, team_feature_id_or_team_feature_name) ⇒ Object

Info for an existing team feature.

Parameters:

  • team_name_or_team_id:

    unique name of team or unique identifier of team

  • team_feature_id_or_team_feature_name:

    unique identifier of team feature or unique name of team feature



3227
3228
3229
# File 'lib/platform-api/client.rb', line 3227

def info(team_name_or_team_id, team_feature_id_or_team_feature_name)
  @client.team_feature.info(team_name_or_team_id, team_feature_id_or_team_feature_name)
end

#list(team_name_or_team_id) ⇒ Object

List existing team features.

Parameters:

  • team_name_or_team_id:

    unique name of team or unique identifier of team



3234
3235
3236
# File 'lib/platform-api/client.rb', line 3234

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