Class: SnapDeploy::Provider::Heroku::API::Plan
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::Plan
- Defined in:
- lib/snap_deploy/provider/heroku/api.rb
Overview
Plans represent different configurations of add-ons that may be added to apps. Endpoints under add-on services can be accessed without authentication.
Instance Method Summary collapse
-
#info(addon_service_id_or_addon_service_name, plan_id_or_plan_name) ⇒ Object
Info for existing plan.
-
#initialize(client) ⇒ Plan
constructor
A new instance of Plan.
-
#list(addon_service_id_or_addon_service_name) ⇒ Object
List existing plans.
Constructor Details
#initialize(client) ⇒ Plan
Returns a new instance of Plan.
1324 1325 1326 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1324 def initialize(client) @client = client end |
Instance Method Details
#info(addon_service_id_or_addon_service_name, plan_id_or_plan_name) ⇒ Object
Info for existing plan.
1332 1333 1334 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1332 def info(addon_service_id_or_addon_service_name, plan_id_or_plan_name) @client.plan.info(addon_service_id_or_addon_service_name, plan_id_or_plan_name) end |
#list(addon_service_id_or_addon_service_name) ⇒ Object
List existing plans.
1339 1340 1341 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1339 def list(addon_service_id_or_addon_service_name) @client.plan.list(addon_service_id_or_addon_service_name) end |