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(account_email_or_account_id_or_account_self) ⇒ Object
Delete account.
-
#info(account_email_or_account_id_or_account_self) ⇒ Object
Info for account.
-
#initialize(client) ⇒ Account
constructor
A new instance of Account.
-
#update(account_email_or_account_id_or_account_self, body = {}) ⇒ Object
Update account.
Constructor Details
#initialize(client) ⇒ Account
Returns a new instance of Account.
622 623 624 |
# File 'lib/platform-api/client.rb', line 622 def initialize(client) @client = client end |
Instance Method Details
#delete(account_email_or_account_id_or_account_self) ⇒ Object
Delete account. Note that this action cannot be undone.
644 645 646 |
# File 'lib/platform-api/client.rb', line 644 def delete(account_email_or_account_id_or_account_self) @client.account.delete(account_email_or_account_id_or_account_self) end |
#info(account_email_or_account_id_or_account_self) ⇒ Object
Info for account.
629 630 631 |
# File 'lib/platform-api/client.rb', line 629 def info(account_email_or_account_id_or_account_self) @client.account.info(account_email_or_account_id_or_account_self) end |
#update(account_email_or_account_id_or_account_self, body = {}) ⇒ Object
Update account.
637 638 639 |
# File 'lib/platform-api/client.rb', line 637 def update(account_email_or_account_id_or_account_self, body = {}) @client.account.update(account_email_or_account_id_or_account_self, body) end |