class PlatformAPI::Account

An account represents an individual signed up to use the Heroku platform.

Public Class Methods

new(client) click to toggle source
# File lib/platform-api/client.rb, line 826
def initialize(client)
  @client = client
end

Public Instance Methods

delete() click to toggle source

Delete account. Note that this action cannot be undone.

# File lib/platform-api/client.rb, line 843
def delete()
  @client.account.delete()
end
delete_by_user(account_email_or_account_id_or_account_self) click to toggle source

Delete account. Note that this action cannot be undone.

@param account_email_or_account_id_or_account_self: unique email address of account or unique identifier of an account or Implicit reference to currently authorized user

# File lib/platform-api/client.rb, line 865
def delete_by_user(account_email_or_account_id_or_account_self)
  @client.account.delete_by_user(account_email_or_account_id_or_account_self)
end
info() click to toggle source

Info for account.

# File lib/platform-api/client.rb, line 831
def info()
  @client.account.info()
end
info_by_user(account_email_or_account_id_or_account_self) click to toggle source

Info for account.

@param account_email_or_account_id_or_account_self: unique email address of account or unique identifier of an account or Implicit reference to currently authorized user

# File lib/platform-api/client.rb, line 850
def info_by_user(account_email_or_account_id_or_account_self)
  @client.account.info_by_user(account_email_or_account_id_or_account_self)
end
update(body = {}) click to toggle source

Update account.

@param body: the object to pass as the request payload

# File lib/platform-api/client.rb, line 838
def update(body = {})
  @client.account.update(body)
end
update_by_user(account_email_or_account_id_or_account_self, body = {}) click to toggle source

Update account.

@param account_email_or_account_id_or_account_self: unique email address of account or unique identifier of an account or Implicit reference to currently authorized user @param body: the object to pass as the request payload

# File lib/platform-api/client.rb, line 858
def update_by_user(account_email_or_account_id_or_account_self, body = {})
  @client.account.update_by_user(account_email_or_account_id_or_account_self, body)
end