Class: PlatformAPI::AppFeature
- Inherits:
- 
      Object
      
        - Object
- PlatformAPI::AppFeature
 
- 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
- 
  
    
      #info(app_id_or_app_name, app_feature_id_or_app_feature_name)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Info for an existing app feature. 
- 
  
    
      #initialize(client)  ⇒ AppFeature 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AppFeature. 
- 
  
    
      #list(app_id_or_app_name)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    List existing app features. 
- 
  
    
      #update(app_id_or_app_name, app_feature_id_or_app_feature_name, body = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update an existing app feature. 
Constructor Details
#initialize(client) ⇒ AppFeature
Returns a new instance of AppFeature.
| 1193 1194 1195 | # File 'lib/platform-api/client.rb', line 1193 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.
| 1201 1202 1203 | # File 'lib/platform-api/client.rb', line 1201 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.
| 1208 1209 1210 | # File 'lib/platform-api/client.rb', line 1208 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.
| 1217 1218 1219 | # File 'lib/platform-api/client.rb', line 1217 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 |