Class: PlatformAPI::AccountFeature
- Inherits:
-
Object
- Object
- PlatformAPI::AccountFeature
- Defined in:
- lib/platform-api/client.rb
Overview
An account feature represents a Heroku labs capability that can be enabled or disabled for an account on Heroku.
Instance Method Summary collapse
-
#info(account_feature_id_or_account_feature_name) ⇒ Object
Info for an existing account feature.
-
#initialize(client) ⇒ AccountFeature
constructor
A new instance of AccountFeature.
-
#list ⇒ Object
List existing account features.
-
#update(account_feature_id_or_account_feature_name, body = {}) ⇒ Object
Update an existing account feature.
Constructor Details
#initialize(client) ⇒ AccountFeature
Returns a new instance of AccountFeature.
818 819 820 |
# File 'lib/platform-api/client.rb', line 818 def initialize(client) @client = client end |
Instance Method Details
#info(account_feature_id_or_account_feature_name) ⇒ Object
Info for an existing account feature.
825 826 827 |
# File 'lib/platform-api/client.rb', line 825 def info(account_feature_id_or_account_feature_name) @client.account_feature.info(account_feature_id_or_account_feature_name) end |
#list ⇒ Object
List existing account features.
830 831 832 |
# File 'lib/platform-api/client.rb', line 830 def list() @client.account_feature.list() end |
#update(account_feature_id_or_account_feature_name, body = {}) ⇒ Object
Update an existing account feature.
838 839 840 |
# File 'lib/platform-api/client.rb', line 838 def update(account_feature_id_or_account_feature_name, body = {}) @client.account_feature.update(account_feature_id_or_account_feature_name, body) end |