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.
579 580 581 |
# File 'lib/platform-api/client.rb', line 579 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.
602 603 604 |
# File 'lib/platform-api/client.rb', line 602 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.
610 611 612 |
# File 'lib/platform-api/client.rb', line 610 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.
617 618 619 |
# File 'lib/platform-api/client.rb', line 617 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.
586 587 588 |
# File 'lib/platform-api/client.rb', line 586 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.
594 595 596 |
# File 'lib/platform-api/client.rb', line 594 def update(account_email_or_account_id_or_account_self, body) @client.account.update(account_email_or_account_id_or_account_self, body) end |