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.



343
344
345
# File 'lib/platform-api/client.rb', line 343

def initialize(client)
  @client = client
end

Instance Method Details

#change_email(body) ⇒ Object

Change Email for account.

Parameters:

  • body:

    the object to pass as the request payload



362
363
364
# File 'lib/platform-api/client.rb', line 362

def change_email(body)
  @client..change_email(body)
end

#change_password(body) ⇒ Object

Change Password for account.

Parameters:

  • body:

    the object to pass as the request payload



369
370
371
# File 'lib/platform-api/client.rb', line 369

def change_password(body)
  @client..change_password(body)
end

#infoObject

Info for account.



348
349
350
# File 'lib/platform-api/client.rb', line 348

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

#update(body) ⇒ Object

Update account.

Parameters:

  • body:

    the object to pass as the request payload



355
356
357
# File 'lib/platform-api/client.rb', line 355

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