Class: SnapDeploy::Provider::Heroku::API::AccountFeature

Inherits:
Object
  • Object
show all
Defined in:
lib/snap_deploy/provider/heroku/api.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

Constructor Details

#initialize(client) ⇒ AccountFeature

Returns a new instance of AccountFeature.



385
386
387
# File 'lib/snap_deploy/provider/heroku/api.rb', line 385

def initialize(client)
  @client = client
end

Instance Method Details

#info(account_feature_id_or_account_feature_name) ⇒ Object

Info for an existing account feature.

Parameters:

  • account_feature_id_or_account_feature_name:

    unique identifier of account feature or unique name of account feature



392
393
394
# File 'lib/snap_deploy/provider/heroku/api.rb', line 392

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

#listObject

List existing account features.



397
398
399
# File 'lib/snap_deploy/provider/heroku/api.rb', line 397

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

#update(account_feature_id_or_account_feature_name, body) ⇒ Object

Update an existing account feature.

Parameters:

  • account_feature_id_or_account_feature_name:

    unique identifier of account feature or unique name of account feature

  • body:

    the object to pass as the request payload



405
406
407
# File 'lib/snap_deploy/provider/heroku/api.rb', line 405

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