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.


622
623
624
# File 'lib/platform-api/client.rb', line 622

def initialize(client)
  @client = client
end

Instance Method Details

#delete(account_email_or_account_id_or_account_self) ⇒ Object

Delete account. Note that this action cannot be undone.

Parameters:

  • 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


644
645
646
# File 'lib/platform-api/client.rb', line 644

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

#info(account_email_or_account_id_or_account_self) ⇒ Object

Info for account.

Parameters:

  • 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


629
630
631
# File 'lib/platform-api/client.rb', line 629

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

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

Update account.

Parameters:

  • 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

  • body:

    the object to pass as the request payload


637
638
639
# File 'lib/platform-api/client.rb', line 637

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