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(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.
2018 2019 2020 |
# File 'lib/platform-api/client.rb', line 2018 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.
2026 2027 2028 |
# File 'lib/platform-api/client.rb', line 2026 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.
2033 2034 2035 |
# File 'lib/platform-api/client.rb', line 2033 def list(addon_service_id_or_addon_service_name) @client.plan.list(addon_service_id_or_addon_service_name) end |