Class: PlatformAPI::AppFeature

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

Overview

An app feature represents a Heroku labs capability that can be enabled or disabled for an app on Heroku.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ AppFeature

Returns a new instance of AppFeature.


854
855
856
# File 'lib/platform-api/client.rb', line 854

def initialize(client)
  @client = client
end

Instance Method Details

#info(app_id_or_app_name, app_feature_id_or_app_feature_name) ⇒ Object

Info for an existing app feature.

Parameters:

  • app_id_or_app_name:

    unique identifier of app or unique name of app

  • app_feature_id_or_app_feature_name:

    unique identifier of app feature or unique name of app feature


862
863
864
# File 'lib/platform-api/client.rb', line 862

def info(app_id_or_app_name, app_feature_id_or_app_feature_name)
  @client.app_feature.info(app_id_or_app_name, app_feature_id_or_app_feature_name)
end

#list(app_id_or_app_name) ⇒ Object

List existing app features.

Parameters:

  • app_id_or_app_name:

    unique identifier of app or unique name of app


869
870
871
# File 'lib/platform-api/client.rb', line 869

def list(app_id_or_app_name)
  @client.app_feature.list(app_id_or_app_name)
end

#update(app_id_or_app_name, app_feature_id_or_app_feature_name, body = {}) ⇒ Object

Update an existing app feature.

Parameters:

  • app_id_or_app_name:

    unique identifier of app or unique name of app

  • app_feature_id_or_app_feature_name:

    unique identifier of app feature or unique name of app feature

  • body:

    the object to pass as the request payload


878
879
880
# File 'lib/platform-api/client.rb', line 878

def update(app_id_or_app_name, app_feature_id_or_app_feature_name, body = {})
  @client.app_feature.update(app_id_or_app_name, app_feature_id_or_app_feature_name, body)
end