Class: PlatformAPI::Account
- Inherits:
-
Object
- Object
- PlatformAPI::Account
- Defined in:
- lib/platform-api/client.rb
Overview
An account represents an individual signed up to use the Heroku platform.
Instance Method Summary collapse
-
#delete ⇒ Object
Delete account.
-
#delete_by_user(account_email_or_account_id_or_account_self) ⇒ Object
Delete account.
-
#info ⇒ Object
Info for account.
-
#info_by_user(account_email_or_account_id_or_account_self) ⇒ Object
Info for account.
-
#initialize(client) ⇒ Account
constructor
A new instance of Account.
-
#update(body = {}) ⇒ Object
Update account.
-
#update_by_user(account_email_or_account_id_or_account_self, body = {}) ⇒ Object
Update account.
Constructor Details
#initialize(client) ⇒ Account
Returns a new instance of Account.
685 686 687 |
# File 'lib/platform-api/client.rb', line 685 def initialize(client) @client = client end |
Instance Method Details
#delete ⇒ Object
Delete account. Note that this action cannot be undone.
702 703 704 |
# File 'lib/platform-api/client.rb', line 702 def delete() @client.account.delete() end |
#delete_by_user(account_email_or_account_id_or_account_self) ⇒ Object
Delete account. Note that this action cannot be undone.
724 725 726 |
# File 'lib/platform-api/client.rb', line 724 def delete_by_user(account_email_or_account_id_or_account_self) @client.account.delete_by_user(account_email_or_account_id_or_account_self) end |
#info ⇒ Object
Info for account.
690 691 692 |
# File 'lib/platform-api/client.rb', line 690 def info() @client.account.info() end |
#info_by_user(account_email_or_account_id_or_account_self) ⇒ Object
Info for account.
709 710 711 |
# File 'lib/platform-api/client.rb', line 709 def info_by_user(account_email_or_account_id_or_account_self) @client.account.info_by_user(account_email_or_account_id_or_account_self) end |
#update(body = {}) ⇒ Object
Update account.
697 698 699 |
# File 'lib/platform-api/client.rb', line 697 def update(body = {}) @client.account.update(body) end |
#update_by_user(account_email_or_account_id_or_account_self, body = {}) ⇒ Object
Update account.
717 718 719 |
# File 'lib/platform-api/client.rb', line 717 def update_by_user(account_email_or_account_id_or_account_self, body = {}) @client.account.update_by_user(account_email_or_account_id_or_account_self, body) end |