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
-
#change_email(account_email_or_account_id_or_account_self, body = {}) ⇒ Object
Change Email for account.
-
#change_password(account_email_or_account_id_or_account_self, body = {}) ⇒ Object
Change Password for account.
-
#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.
601 602 603 |
# File 'lib/platform-api/client.rb', line 601 def initialize(client) @client = client end |
Instance Method Details
#change_email(account_email_or_account_id_or_account_self, body = {}) ⇒ Object
Change Email for account.
624 625 626 |
# File 'lib/platform-api/client.rb', line 624 def change_email(account_email_or_account_id_or_account_self, body = {}) @client.account.change_email(account_email_or_account_id_or_account_self, body) end |
#change_password(account_email_or_account_id_or_account_self, body = {}) ⇒ Object
Change Password for account.
632 633 634 |
# File 'lib/platform-api/client.rb', line 632 def change_password(account_email_or_account_id_or_account_self, body = {}) @client.account.change_password(account_email_or_account_id_or_account_self, body) end |
#delete(account_email_or_account_id_or_account_self) ⇒ Object
Delete account. Note that this action cannot be undone.
639 640 641 |
# File 'lib/platform-api/client.rb', line 639 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.
608 609 610 |
# File 'lib/platform-api/client.rb', line 608 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.
616 617 618 |
# File 'lib/platform-api/client.rb', line 616 def update(account_email_or_account_id_or_account_self, body = {}) @client.account.update(account_email_or_account_id_or_account_self, body) end |