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.
831 832 833 |
# File 'lib/platform-api/client.rb', line 831 def initialize(client) @client = client end |
Instance Method Details
#delete ⇒ Object
Delete account. Note that this action cannot be undone. Note: This endpoint requires the HTTP_HEROKU_PASSWORD or HTTP_HEROKU_PASSWORD_BASE64 header be set correctly for the user account.
848 849 850 |
# File 'lib/platform-api/client.rb', line 848 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. Note: This endpoint requires the HTTP_HEROKU_PASSWORD or HTTP_HEROKU_PASSWORD_BASE64 header be set correctly for the user account.
870 871 872 |
# File 'lib/platform-api/client.rb', line 870 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.
836 837 838 |
# File 'lib/platform-api/client.rb', line 836 def info() @client.account.info() end |
#info_by_user(account_email_or_account_id_or_account_self) ⇒ Object
Info for account.
855 856 857 |
# File 'lib/platform-api/client.rb', line 855 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.
843 844 845 |
# File 'lib/platform-api/client.rb', line 843 def update(body = {}) @client.account.update(body) end |
#update_by_user(account_email_or_account_id_or_account_self, body = {}) ⇒ Object
Update account.
863 864 865 |
# File 'lib/platform-api/client.rb', line 863 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 |