Class: PlatformAPI::EnterpriseAccount

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

Overview

Enterprise accounts allow companies to manage their development teams and billing.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ EnterpriseAccount

Returns a new instance of EnterpriseAccount.



1913
1914
1915
# File 'lib/platform-api/client.rb', line 1913

def initialize(client)
  @client = client
end

Instance Method Details

#info(enterprise_account_id_or_enterprise_account_name) ⇒ Object

Information about an enterprise account.

Parameters:

  • enterprise_account_id_or_enterprise_account_name:

    unique identifier of the enterprise account or unique name of the enterprise account



1925
1926
1927
# File 'lib/platform-api/client.rb', line 1925

def info()
  @client..info()
end

#listObject

List enterprise accounts in which you are a member.



1918
1919
1920
# File 'lib/platform-api/client.rb', line 1918

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

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

Update enterprise account properties

Parameters:

  • enterprise_account_id_or_enterprise_account_name:

    unique identifier of the enterprise account or unique name of the enterprise account

  • body:

    the object to pass as the request payload



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

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