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.
558 559 560 |
# File 'lib/platform-api/client.rb', line 558 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.
581 582 583 |
# File 'lib/platform-api/client.rb', line 581 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.
589 590 591 |
# File 'lib/platform-api/client.rb', line 589 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.
596 597 598 |
# File 'lib/platform-api/client.rb', line 596 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.
565 566 567 |
# File 'lib/platform-api/client.rb', line 565 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.
573 574 575 |
# File 'lib/platform-api/client.rb', line 573 def update(account_email_or_account_id_or_account_self, body) @client.account.update(account_email_or_account_id_or_account_self, body) end |