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(body) ⇒ Object
Change Email for account.
-
#change_password(body) ⇒ Object
Change Password for 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.
307 308 309 |
# File 'lib/platform-api/client.rb', line 307 def initialize(client) @client = client end |
Instance Method Details
#change_email(body) ⇒ Object
Change Email for account.
326 327 328 |
# File 'lib/platform-api/client.rb', line 326 def change_email(body) @client.account.change_email(body) end |
#change_password(body) ⇒ Object
Change Password for account.
333 334 335 |
# File 'lib/platform-api/client.rb', line 333 def change_password(body) @client.account.change_password(body) end |
#info ⇒ Object
Info for account.
312 313 314 |
# File 'lib/platform-api/client.rb', line 312 def info() @client.account.info() end |
#update(body) ⇒ Object
Update account.
319 320 321 |
# File 'lib/platform-api/client.rb', line 319 def update(body) @client.account.update(body) end |