Class: PlatformAPI::TeamPreferences

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

Overview

Tracks a Team's Preferences

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ TeamPreferences

Returns a new instance of TeamPreferences.



3377
3378
3379
# File 'lib/platform-api/client.rb', line 3377

def initialize(client)
  @client = client
end

Instance Method Details

#list(team_preferences_identity) ⇒ Object

Retrieve Team Preferences

Parameters:

  • team_preferences_identity:


3384
3385
3386
# File 'lib/platform-api/client.rb', line 3384

def list(team_preferences_identity)
  @client.team_preferences.list(team_preferences_identity)
end

#update(team_preferences_identity, body = {}) ⇒ Object

Update Team Preferences

Parameters:

  • team_preferences_identity:
  • body:

    the object to pass as the request payload



3392
3393
3394
# File 'lib/platform-api/client.rb', line 3392

def update(team_preferences_identity, body = {})
  @client.team_preferences.update(team_preferences_identity, body)
end