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

Returns a new instance of Plan.



1944
1945
1946
# File 'lib/platform-api/client.rb', line 1944

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.

Parameters:

  • addon_service_id_or_addon_service_name:

    unique identifier of this addon-service or unique name of this addon-service

  • plan_id_or_plan_name:

    unique identifier of this plan or unique name of this plan



1952
1953
1954
# File 'lib/platform-api/client.rb', line 1952

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.

Parameters:

  • addon_service_id_or_addon_service_name:

    unique identifier of this addon-service or unique name of this addon-service



1959
1960
1961
# File 'lib/platform-api/client.rb', line 1959

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