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.



601
602
603
# File 'lib/platform-api/client.rb', line 601

def initialize(client)
  @client = client
end

Instance Method Details

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

Change Email 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

  • body:

    the object to pass as the request payload



624
625
626
# File 'lib/platform-api/client.rb', line 624

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

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

Change Password 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

  • body:

    the object to pass as the request payload



632
633
634
# File 'lib/platform-api/client.rb', line 632

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

#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



639
640
641
# File 'lib/platform-api/client.rb', line 639

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



608
609
610
# File 'lib/platform-api/client.rb', line 608

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



616
617
618
# File 'lib/platform-api/client.rb', line 616

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