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.



307
308
309
# File 'lib/platform-api/client.rb', line 307

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



326
327
328
# File 'lib/platform-api/client.rb', line 326

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



333
334
335
# File 'lib/platform-api/client.rb', line 333

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

#infoObject

Info for account.



312
313
314
# File 'lib/platform-api/client.rb', line 312

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

#update(body) ⇒ Object

Update account.

Parameters:

  • body:

    the object to pass as the request payload



319
320
321
# File 'lib/platform-api/client.rb', line 319

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