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.



1023
1024
1025
# File 'lib/platform-api/client.rb', line 1023

def initialize(client)
  @client = client
end

Instance Method Details

#info(app_id_or_app_name) ⇒ Object

Get config-vars for app.

Parameters:

  • app_id_or_app_name:

    unique identifier of app or unique name of app



1030
1031
1032
# File 'lib/platform-api/client.rb', line 1030

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

#update(app_id_or_app_name, 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:

  • app_id_or_app_name:

    unique identifier of app or unique name of app

  • body:

    the object to pass as the request payload



1038
1039
1040
# File 'lib/platform-api/client.rb', line 1038

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