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.



1856
1857
1858
# File 'lib/platform-api/client.rb', line 1856

def initialize(client)
  @client = client
end

Instance Method Details

#info(enterprise_account_id) ⇒ Object

Information about an enterprise account.

Parameters:

  • enterprise_account_id:

    unique identifier of the enterprise account



1868
1869
1870
# File 'lib/platform-api/client.rb', line 1868

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

#listObject

List enterprise accounts in which you are a member.



1861
1862
1863
# File 'lib/platform-api/client.rb', line 1861

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

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

Update enterprise account properties

Parameters:

  • enterprise_account_id:

    unique identifier of the enterprise account

  • body:

    the object to pass as the request payload



1876
1877
1878
# File 'lib/platform-api/client.rb', line 1876

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