Class: PlatformAPI::OrganizationPreferences

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

Overview

Tracks an organization's preferences

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ OrganizationPreferences

Returns a new instance of OrganizationPreferences.


1932
1933
1934
# File 'lib/platform-api/client.rb', line 1932

def initialize(client)
  @client = client
end

Instance Method Details

#list(organization_preferences_identity) ⇒ Object

Retrieve Organization Preferences

Parameters:

  • organization_preferences_identity:

1939
1940
1941
# File 'lib/platform-api/client.rb', line 1939

def list(organization_preferences_identity)
  @client.organization_preferences.list(organization_preferences_identity)
end

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

Update Organization Preferences

Parameters:

  • organization_preferences_identity:
  • body:

    the object to pass as the request payload


1947
1948
1949
# File 'lib/platform-api/client.rb', line 1947

def update(organization_preferences_identity, body = {})
  @client.organization_preferences.update(organization_preferences_identity, body)
end