Class: PlatformAPI::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.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.



966
967
968
# File 'lib/platform-api/client.rb', line 966

def initialize(client)
  @client = client
end

Instance Method Details

#deleteObject

Delete account. Note that this action cannot be undone. Note: This endpoint requires the HTTP_HEROKU_PASSWORD or HTTP_HEROKU_PASSWORD_BASE64 header be set correctly for the user account.



992
993
994
# File 'lib/platform-api/client.rb', line 992

def delete()
  @client..delete()
end

#delete_by_user(account_email_or_account_id_or_account_self) ⇒ Object



1030
1031
1032
# File 'lib/platform-api/client.rb', line 1030

def delete_by_user()
  @client..delete_by_user()
end

#infoObject

Info for account.



973
974
975
# File 'lib/platform-api/client.rb', line 973

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

#info_by_user(account_email_or_account_id_or_account_self) ⇒ Object



1004
1005
1006
# File 'lib/platform-api/client.rb', line 1004

def info_by_user()
  @client..info_by_user()
end

#update(body = {}) ⇒ Object



985
986
987
# File 'lib/platform-api/client.rb', line 985

def update(body = {})
  @client..update(body)
end

#update_by_user(account_email_or_account_id_or_account_self, body = {}) ⇒ Object



1018
1019
1020
# File 'lib/platform-api/client.rb', line 1018

def update_by_user(, body = {})
  @client..update_by_user(, body)
end