Class: PlatformAPI::EnterpriseAccountMember
- Inherits:
-
Object
- Object
- PlatformAPI::EnterpriseAccountMember
- Defined in:
- lib/platform-api/client.rb
Overview
Enterprise account members are users with access to an enterprise account.
Instance Method Summary collapse
-
#create(enterprise_account_id_or_enterprise_account_name, body = {}) ⇒ Object
Create a member in an enterprise account.
-
#delete(enterprise_account_id_or_enterprise_account_name, account_email_or_account_id) ⇒ Object
delete a member in an enterprise account.
-
#initialize(client) ⇒ EnterpriseAccountMember
constructor
A new instance of EnterpriseAccountMember.
-
#list(enterprise_account_id_or_enterprise_account_name) ⇒ Object
List members in an enterprise account.
-
#update(enterprise_account_id_or_enterprise_account_name, account_email_or_account_id, body = {}) ⇒ Object
Update a member in an enterprise account.
Constructor Details
#initialize(client) ⇒ EnterpriseAccountMember
Returns a new instance of EnterpriseAccountMember.
1821 1822 1823 |
# File 'lib/platform-api/client.rb', line 1821 def initialize(client) @client = client end |
Instance Method Details
#create(enterprise_account_id_or_enterprise_account_name, body = {}) ⇒ Object
Create a member in an enterprise account.
1836 1837 1838 |
# File 'lib/platform-api/client.rb', line 1836 def create(enterprise_account_id_or_enterprise_account_name, body = {}) @client.enterprise_account_member.create(enterprise_account_id_or_enterprise_account_name, body) end |
#delete(enterprise_account_id_or_enterprise_account_name, account_email_or_account_id) ⇒ Object
delete a member in an enterprise account.
1853 1854 1855 |
# File 'lib/platform-api/client.rb', line 1853 def delete(enterprise_account_id_or_enterprise_account_name, account_email_or_account_id) @client.enterprise_account_member.delete(enterprise_account_id_or_enterprise_account_name, account_email_or_account_id) end |
#list(enterprise_account_id_or_enterprise_account_name) ⇒ Object
List members in an enterprise account.
1828 1829 1830 |
# File 'lib/platform-api/client.rb', line 1828 def list(enterprise_account_id_or_enterprise_account_name) @client.enterprise_account_member.list(enterprise_account_id_or_enterprise_account_name) end |
#update(enterprise_account_id_or_enterprise_account_name, account_email_or_account_id, body = {}) ⇒ Object
Update a member in an enterprise account.
1845 1846 1847 |
# File 'lib/platform-api/client.rb', line 1845 def update(enterprise_account_id_or_enterprise_account_name, account_email_or_account_id, body = {}) @client.enterprise_account_member.update(enterprise_account_id_or_enterprise_account_name, account_email_or_account_id, body) end |