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.



805
806
807
# File 'lib/platform-api/client.rb', line 805

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.



822
823
824
# File 'lib/platform-api/client.rb', line 822

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

#delete_by_user(account_email_or_account_id_or_account_self) ⇒ Object

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.

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



844
845
846
# File 'lib/platform-api/client.rb', line 844

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

#infoObject

Info for account.



810
811
812
# File 'lib/platform-api/client.rb', line 810

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

#info_by_user(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



829
830
831
# File 'lib/platform-api/client.rb', line 829

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

#update(body = {}) ⇒ Object

Update account.

Parameters:

  • body:

    the object to pass as the request payload



817
818
819
# File 'lib/platform-api/client.rb', line 817

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

#update_by_user(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



837
838
839
# File 'lib/platform-api/client.rb', line 837

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