Class: Clayful::SubscriptionPlan
- Inherits:
-
Object
- Object
- Clayful::SubscriptionPlan
- Defined in:
- lib/models/subscription_plan.rb
Constant Summary collapse
- @@name =
'SubscriptionPlan'
- @@path =
'subscriptions/plans'
Class Method Summary collapse
Class Method Details
.count(*args) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/models/subscription_plan.rb', line 16 def self.count(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'count', 'http_method' => 'GET', 'path' => '/v1/subscriptions/plans/count', 'params' => [], 'args' => args }) end |
.get(*args) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/models/subscription_plan.rb', line 29 def self.get(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'get', 'http_method' => 'GET', 'path' => '/v1/subscriptions/plans/{subscriptionPlanId}', 'params' => ['subscriptionPlanId', ], 'args' => args }) end |
.list(*args) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/models/subscription_plan.rb', line 42 def self.list(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'list', 'http_method' => 'GET', 'path' => '/v1/subscriptions/plans', 'params' => [], 'args' => args }) end |
.name ⇒ Object
8 9 10 |
# File 'lib/models/subscription_plan.rb', line 8 def self.name @@name end |
.path ⇒ Object
12 13 14 |
# File 'lib/models/subscription_plan.rb', line 12 def self.path @@path end |