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.



3343
3344
3345
# File 'lib/platform-api/client.rb', line 3343

def initialize(client)
  @client = client
end

Instance Method Details

#list(team_preferences_identity) ⇒ Object

Retrieve Team Preferences

Parameters:

  • team_preferences_identity:


3350
3351
3352
# File 'lib/platform-api/client.rb', line 3350

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



3358
3359
3360
# File 'lib/platform-api/client.rb', line 3358

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