Class: SnapDeploy::Provider::Heroku::API::Account
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::Account
- Defined in:
- lib/snap_deploy/provider/heroku/api.rb
Overview
An account represents an individual signed up to use the Heroku platform.
Instance Method Summary collapse
-
#change_email(body) ⇒ Object
Change Email for account.
-
#change_password(body) ⇒ Object
Change Password for account.
-
#delete ⇒ Object
Delete account.
-
#info ⇒ Object
Info for account.
-
#initialize(client) ⇒ Account
constructor
A new instance of Account.
-
#update(body) ⇒ Object
Update account.
Constructor Details
#initialize(client) ⇒ Account
Returns a new instance of Account.
412 413 414 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 412 def initialize(client) @client = client end |
Instance Method Details
#change_email(body) ⇒ Object
Change Email for account.
431 432 433 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 431 def change_email(body) @client.account.change_email(body) end |
#change_password(body) ⇒ Object
Change Password for account.
438 439 440 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 438 def change_password(body) @client.account.change_password(body) end |
#delete ⇒ Object
Delete account. Note that this action cannot be undone.
443 444 445 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 443 def delete() @client.account.delete() end |
#info ⇒ Object
Info for account.
417 418 419 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 417 def info() @client.account.info() end |
#update(body) ⇒ Object
Update account.
424 425 426 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 424 def update(body) @client.account.update(body) end |