Class: SnapDeploy::Provider::Heroku::API::Account

Inherits:
Object
  • Object
show all
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

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.

Parameters:

  • body:

    the object to pass as the request payload



431
432
433
# File 'lib/snap_deploy/provider/heroku/api.rb', line 431

def change_email(body)
  @client..change_email(body)
end

#change_password(body) ⇒ Object

Change Password for account.

Parameters:

  • body:

    the object to pass as the request payload



438
439
440
# File 'lib/snap_deploy/provider/heroku/api.rb', line 438

def change_password(body)
  @client..change_password(body)
end

#deleteObject

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..delete()
end

#infoObject

Info for account.



417
418
419
# File 'lib/snap_deploy/provider/heroku/api.rb', line 417

def info()
  @client..info()
end

#update(body) ⇒ Object

Update account.

Parameters:

  • body:

    the object to pass as the request payload



424
425
426
# File 'lib/snap_deploy/provider/heroku/api.rb', line 424

def update(body)
  @client..update(body)
end