Class: Komoju::Plans
- Inherits:
-
Object
- Object
- Komoju::Plans
- Defined in:
- lib/komoju/client.rb
Overview
Subscription Plans
Instance Method Summary collapse
-
#create(body) ⇒ Object
Create a plan.
-
#delete(plans_name) ⇒ Object
Delete a plan.
-
#initialize(client) ⇒ Plans
constructor
A new instance of Plans.
-
#list(collection_options = {}) ⇒ Object
List plans.
-
#show(plans_name) ⇒ Object
Show a plan.
Constructor Details
#initialize(client) ⇒ Plans
Returns a new instance of Plans.
419 420 421 |
# File 'lib/komoju/client.rb', line 419 def initialize(client) @client = client end |
Instance Method Details
#create(body) ⇒ Object
Create a plan
440 441 442 |
# File 'lib/komoju/client.rb', line 440 def create(body) @client.plans.create(body) end |
#delete(plans_name) ⇒ Object
Delete a plan
447 448 449 |
# File 'lib/komoju/client.rb', line 447 def delete(plans_name) @client.plans.delete(plans_name) end |
#list(collection_options = {}) ⇒ Object
List plans
426 427 428 |
# File 'lib/komoju/client.rb', line 426 def list( = {}) @client.plans.list() end |
#show(plans_name) ⇒ Object
Show a plan
433 434 435 |
# File 'lib/komoju/client.rb', line 433 def show(plans_name) @client.plans.show(plans_name) end |