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.



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

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



373
374
375
# File 'lib/platform-api/client.rb', line 373

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



380
381
382
# File 'lib/platform-api/client.rb', line 380

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

#infoObject

Info for account.



359
360
361
# File 'lib/platform-api/client.rb', line 359

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

#update(body) ⇒ Object

Update account.

Parameters:

  • body:

    the object to pass as the request payload



366
367
368
# File 'lib/platform-api/client.rb', line 366

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