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, body) ⇒ Object
Change Email for account.
-
#change_password(account_email_or_account_id, body) ⇒ Object
Change Password for account.
-
#delete(account_email_or_account_id) ⇒ Object
Delete account.
-
#info(account_email_or_account_id) ⇒ Object
Info for account.
-
#initialize(client) ⇒ Account
constructor
A new instance of Account.
-
#update(account_email_or_account_id, body) ⇒ Object
Update account.
Constructor Details
#initialize(client) ⇒ Account
Returns a new instance of Account.
1658 1659 1660 |
# File 'lib/platform-api/client.rb', line 1658 def initialize(client) @client = client end |
Instance Method Details
#change_email(account_email_or_account_id, body) ⇒ Object
Change Email for account.
1681 1682 1683 |
# File 'lib/platform-api/client.rb', line 1681 def change_email(account_email_or_account_id, body) @client.account.change_email(account_email_or_account_id, body) end |
#change_password(account_email_or_account_id, body) ⇒ Object
Change Password for account.
1689 1690 1691 |
# File 'lib/platform-api/client.rb', line 1689 def change_password(account_email_or_account_id, body) @client.account.change_password(account_email_or_account_id, body) end |
#delete(account_email_or_account_id) ⇒ Object
Delete account. Note that this action cannot be undone.
1696 1697 1698 |
# File 'lib/platform-api/client.rb', line 1696 def delete(account_email_or_account_id) @client.account.delete(account_email_or_account_id) end |
#info(account_email_or_account_id) ⇒ Object
Info for account.
1665 1666 1667 |
# File 'lib/platform-api/client.rb', line 1665 def info(account_email_or_account_id) @client.account.info(account_email_or_account_id) end |
#update(account_email_or_account_id, body) ⇒ Object
Update account.
1673 1674 1675 |
# File 'lib/platform-api/client.rb', line 1673 def update(account_email_or_account_id, body) @client.account.update(account_email_or_account_id, body) end |