Class: PlatformAPI::Plan
- Inherits:
-
Object
- Object
- PlatformAPI::Plan
- Defined in:
- lib/platform-api/client.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(plan_id_or_plan_name) ⇒ Object
Info for existing plan.
-
#info_by_addon(addon_service_id_or_addon_service_name, plan_id_or_plan_name) ⇒ Object
Info for existing plan by Add-on.
-
#initialize(client) ⇒ Plan
constructor
A new instance of Plan.
-
#list_by_addon(addon_service_id_or_addon_service_name) ⇒ Object
List existing plans by Add-on.
Constructor Details
#initialize(client) ⇒ Plan
Returns a new instance of Plan.
2645 2646 2647 |
# File 'lib/platform-api/client.rb', line 2645 def initialize(client) @client = client end |
Instance Method Details
#info(plan_id_or_plan_name) ⇒ Object
Info for existing plan.
2652 2653 2654 |
# File 'lib/platform-api/client.rb', line 2652 def info(plan_id_or_plan_name) @client.plan.info(plan_id_or_plan_name) end |
#info_by_addon(addon_service_id_or_addon_service_name, plan_id_or_plan_name) ⇒ Object
Info for existing plan by Add-on.
2660 2661 2662 |
# File 'lib/platform-api/client.rb', line 2660 def info_by_addon(addon_service_id_or_addon_service_name, plan_id_or_plan_name) @client.plan.info_by_addon(addon_service_id_or_addon_service_name, plan_id_or_plan_name) end |
#list_by_addon(addon_service_id_or_addon_service_name) ⇒ Object
List existing plans by Add-on.
2667 2668 2669 |
# File 'lib/platform-api/client.rb', line 2667 def list_by_addon(addon_service_id_or_addon_service_name) @client.plan.list_by_addon(addon_service_id_or_addon_service_name) end |