Class: ChargeBee::Addon
Instance Attribute Summary collapse
-
#archived_at ⇒ Object
Returns the value of attribute archived_at.
-
#charge_type ⇒ Object
Returns the value of attribute charge_type.
-
#description ⇒ Object
Returns the value of attribute description.
-
#enabled_in_portal ⇒ Object
Returns the value of attribute enabled_in_portal.
-
#id ⇒ Object
Returns the value of attribute id.
-
#invoice_name ⇒ Object
Returns the value of attribute invoice_name.
-
#invoice_notes ⇒ Object
Returns the value of attribute invoice_notes.
-
#meta_data ⇒ Object
Returns the value of attribute meta_data.
-
#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.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tax_code ⇒ Object
Returns the value of attribute tax_code.
-
#taxable ⇒ Object
Returns the value of attribute taxable.
-
#type ⇒ Object
Returns the value of attribute type.
-
#unit ⇒ Object
Returns the value of attribute unit.
Class Method Summary collapse
-
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .delete(id, env = nil, headers = {}) ⇒ Object
- .list(params = {}, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .update(id, params = {}, env = nil, headers = {}) ⇒ Object
Methods inherited from Model
construct, #init_dependant, #init_dependant_list, #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/addon.rb', line 4 def archived_at @archived_at end |
#charge_type ⇒ Object
Returns the value of attribute charge_type.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def charge_type @charge_type end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def description @description end |
#enabled_in_portal ⇒ Object
Returns the value of attribute enabled_in_portal.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def enabled_in_portal @enabled_in_portal end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def id @id end |
#invoice_name ⇒ Object
Returns the value of attribute invoice_name.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def invoice_name @invoice_name end |
#invoice_notes ⇒ Object
Returns the value of attribute invoice_notes.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def invoice_notes @invoice_notes end |
#meta_data ⇒ Object
Returns the value of attribute meta_data.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def @meta_data end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def name @name end |
#period ⇒ Object
Returns the value of attribute period.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def period @period end |
#period_unit ⇒ Object
Returns the value of attribute period_unit.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def period_unit @period_unit end |
#price ⇒ Object
Returns the value of attribute price.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def price @price end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def status @status end |
#tax_code ⇒ Object
Returns the value of attribute tax_code.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def tax_code @tax_code end |
#taxable ⇒ Object
Returns the value of attribute taxable.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def taxable @taxable end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def type @type end |
#unit ⇒ Object
Returns the value of attribute unit.
4 5 6 |
# File 'lib/chargebee/models/addon.rb', line 4 def unit @unit end |
Class Method Details
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
11 12 13 |
# File 'lib/chargebee/models/addon.rb', line 11 def self.create(params, env=nil, headers={}) Request.send('post', uri_path("addons"), params, env, headers) end |
.delete(id, env = nil, headers = {}) ⇒ Object
27 28 29 |
# File 'lib/chargebee/models/addon.rb', line 27 def self.delete(id, env=nil, headers={}) Request.send('post', uri_path("addons",id.to_s,"delete"), {}, env, headers) end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
19 20 21 |
# File 'lib/chargebee/models/addon.rb', line 19 def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("addons"), params, env, headers) end |