Class: PlatformAPI::ConfigVar

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

Config Vars allow you to manage the configuration information provided to an app on Heroku.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ ConfigVar

Returns a new instance of ConfigVar.



670
671
672
# File 'lib/platform-api/client.rb', line 670

def initialize(client)
  @client = client
end

Instance Method Details

#infoObject

Get config-vars for app.



675
676
677
# File 'lib/platform-api/client.rb', line 675

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

#update(body) ⇒ Object

Update config-vars for app. You can update existing config-vars by setting them again, and remove by setting it to NULL.

Parameters:

  • body:

    the object to pass as the request payload



682
683
684
# File 'lib/platform-api/client.rb', line 682

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