Class: ChargeBee::Plan
Instance Attribute Summary collapse
-
#archived_at ⇒ Object
Returns the value of attribute archived_at.
-
#billing_cycles ⇒ Object
Returns the value of attribute billing_cycles.
-
#downgrade_penalty ⇒ Object
Returns the value of attribute downgrade_penalty.
-
#free_quantity ⇒ Object
Returns the value of attribute free_quantity.
-
#id ⇒ Object
Returns the value of attribute id.
-
#invoice_name ⇒ Object
Returns the value of attribute invoice_name.
-
#name ⇒ Object
Returns the value of attribute name.
-
#period ⇒ Object
Returns the value of attribute period.
-
#period_unit ⇒ Object
Returns the value of attribute period_unit.
-
#price ⇒ Object
Returns the value of attribute price.
-
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
-
#setup_cost ⇒ Object
Returns the value of attribute setup_cost.
-
#status ⇒ Object
Returns the value of attribute status.
-
#trial_period ⇒ Object
Returns the value of attribute trial_period.
-
#trial_period_unit ⇒ Object
Returns the value of attribute trial_period_unit.
Class Method Summary collapse
-
.create(params, env = nil) ⇒ Object
OPERATIONS ———–.
- .delete(id, env = nil) ⇒ Object
- .list(params = {}, env = nil) ⇒ Object
- .retrieve(id, env = nil) ⇒ Object
- .update(id, params = {}, env = nil) ⇒ Object
Methods inherited from Model
construct, #initialize, #inspect, #load, #method_missing, #to_s, uri_path
Constructor Details
This class inherits a constructor from ChargeBee::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ChargeBee::Model
Instance Attribute Details
#archived_at ⇒ Object
Returns the value of attribute archived_at.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def archived_at @archived_at end |
#billing_cycles ⇒ Object
Returns the value of attribute billing_cycles.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def billing_cycles @billing_cycles end |
#downgrade_penalty ⇒ Object
Returns the value of attribute downgrade_penalty.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def downgrade_penalty @downgrade_penalty end |
#free_quantity ⇒ Object
Returns the value of attribute free_quantity.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def free_quantity @free_quantity end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def id @id end |
#invoice_name ⇒ Object
Returns the value of attribute invoice_name.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def invoice_name @invoice_name end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def name @name end |
#period ⇒ Object
Returns the value of attribute period.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def period @period end |
#period_unit ⇒ Object
Returns the value of attribute period_unit.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def period_unit @period_unit end |
#price ⇒ Object
Returns the value of attribute price.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def price @price end |
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def redirect_url @redirect_url end |
#setup_cost ⇒ Object
Returns the value of attribute setup_cost.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def setup_cost @setup_cost end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def status @status end |
#trial_period ⇒ Object
Returns the value of attribute trial_period.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def trial_period @trial_period end |
#trial_period_unit ⇒ Object
Returns the value of attribute trial_period_unit.
4 5 6 |
# File 'lib/chargebee/models/plan.rb', line 4 def trial_period_unit @trial_period_unit end |
Class Method Details
.create(params, env = nil) ⇒ Object
OPERATIONS
10 11 12 |
# File 'lib/chargebee/models/plan.rb', line 10 def self.create(params, env=nil) Request.send('post', uri_path("plans"), params, env) end |
.delete(id, env = nil) ⇒ Object
26 27 28 |
# File 'lib/chargebee/models/plan.rb', line 26 def self.delete(id, env=nil) Request.send('post', uri_path("plans",id.to_s,"delete"), {}, env) end |
.list(params = {}, env = nil) ⇒ Object
18 19 20 |
# File 'lib/chargebee/models/plan.rb', line 18 def self.list(params={}, env=nil) Request.send('get', uri_path("plans"), params, env) end |