Class: PlatformAPI::EnterpriseAccountMember

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

Overview

Enterprise account members are users with access to an enterprise account.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ EnterpriseAccountMember

Returns a new instance of EnterpriseAccountMember.



1795
1796
1797
# File 'lib/platform-api/client.rb', line 1795

def initialize(client)
  @client = client
end

Instance Method Details

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

Create a member in an enterprise account.

Parameters:

  • enterprise_account_id:

    unique identifier of the enterprise account

  • body:

    the object to pass as the request payload



1810
1811
1812
# File 'lib/platform-api/client.rb', line 1810

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

#delete(enterprise_account_id, account_email_or_account_id) ⇒ Object

delete a member in an enterprise account.

Parameters:

  • enterprise_account_id:

    unique identifier of the enterprise account

  • account_email_or_account_id:

    unique email address of account or unique identifier of an account



1827
1828
1829
# File 'lib/platform-api/client.rb', line 1827

def delete(, )
  @client..delete(, )
end

#list(enterprise_account_id) ⇒ Object

List members in an enterprise account.

Parameters:

  • enterprise_account_id:

    unique identifier of the enterprise account



1802
1803
1804
# File 'lib/platform-api/client.rb', line 1802

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

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

Update a member in an enterprise account.

Parameters:

  • enterprise_account_id:

    unique identifier of the enterprise account

  • account_email_or_account_id:

    unique email address of account or unique identifier of an account

  • body:

    the object to pass as the request payload



1819
1820
1821
# File 'lib/platform-api/client.rb', line 1819

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