Class: PlatformAPI::Plan

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(client) ⇒ Plan



2693
2694
2695
# File 'lib/platform-api/client.rb', line 2693

def initialize(client)
  @client = client
end

Instance Method Details

#info(plan_id_or_plan_name) ⇒ Object

Info for existing plan.



2700
2701
2702
# File 'lib/platform-api/client.rb', line 2700

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.



2708
2709
2710
# File 'lib/platform-api/client.rb', line 2708

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.



2715
2716
2717
# File 'lib/platform-api/client.rb', line 2715

def list_by_addon(addon_service_id_or_addon_service_name)
  @client.plan.list_by_addon(addon_service_id_or_addon_service_name)
end