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.



749
750
751
# File 'lib/platform-api/client.rb', line 749

def initialize(client)
  @client = client
end

Instance Method Details

#deleteObject

Delete account. Note that this action cannot be undone.



766
767
768
# File 'lib/platform-api/client.rb', line 766

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.

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



788
789
790
# File 'lib/platform-api/client.rb', line 788

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

#infoObject

Info for account.



754
755
756
# File 'lib/platform-api/client.rb', line 754

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



773
774
775
# File 'lib/platform-api/client.rb', line 773

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

#update(body = {}) ⇒ Object

Update account.

Parameters:

  • body:

    the object to pass as the request payload



761
762
763
# File 'lib/platform-api/client.rb', line 761

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



781
782
783
# File 'lib/platform-api/client.rb', line 781

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