Class: SnapDeploy::Provider::Heroku::API::AddonService
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::AddonService
- Defined in:
- lib/snap_deploy/provider/heroku/api.rb
Overview
Add-on services represent add-ons that may be provisioned for apps. Endpoints under add-on services can be accessed without authentication.
Instance Method Summary collapse
-
#info(addon_service_id_or_addon_service_name) ⇒ Object
Info for existing addon-service.
-
#initialize(client) ⇒ AddonService
constructor
A new instance of AddonService.
-
#list ⇒ Object
List existing addon-services.
Constructor Details
#initialize(client) ⇒ AddonService
Returns a new instance of AddonService.
450 451 452 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 450 def initialize(client) @client = client end |
Instance Method Details
#info(addon_service_id_or_addon_service_name) ⇒ Object
Info for existing addon-service.
457 458 459 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 457 def info(addon_service_id_or_addon_service_name) @client.addon_service.info(addon_service_id_or_addon_service_name) end |
#list ⇒ Object
List existing addon-services.
462 463 464 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 462 def list() @client.addon_service.list() end |