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.



579
580
581
# File 'lib/platform-api/client.rb', line 579

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



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

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



610
611
612
# File 'lib/platform-api/client.rb', line 610

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



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

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



586
587
588
# File 'lib/platform-api/client.rb', line 586

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



594
595
596
# File 'lib/platform-api/client.rb', line 594

def update(, body)
  @client..update(, body)
end