Class: ChargeBee::MeteredFeature
- Defined in:
- lib/chargebee/models/metered_feature.rb
Instance Attribute Summary collapse
-
#column_definitions ⇒ Object
Returns the value of attribute column_definitions.
-
#description ⇒ Object
Returns the value of attribute description.
-
#features ⇒ Object
Returns the value of attribute features.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#query ⇒ Object
Returns the value of attribute query.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
- .archive(id, env = nil, headers = {}) ⇒ Object
-
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS -----------.
- .delete(id, env = nil, headers = {}) ⇒ Object
- .reactivate(id, env = nil, headers = {}) ⇒ Object
Methods inherited from Model
construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #respond_to_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
#column_definitions ⇒ Object
Returns the value of attribute column_definitions.
4 5 6 |
# File 'lib/chargebee/models/metered_feature.rb', line 4 def column_definitions @column_definitions end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/chargebee/models/metered_feature.rb', line 4 def description @description end |
#features ⇒ Object
Returns the value of attribute features.
4 5 6 |
# File 'lib/chargebee/models/metered_feature.rb', line 4 def features @features end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/metered_feature.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/chargebee/models/metered_feature.rb', line 4 def name @name end |
#query ⇒ Object
Returns the value of attribute query.
4 5 6 |
# File 'lib/chargebee/models/metered_feature.rb', line 4 def query @query end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/chargebee/models/metered_feature.rb', line 4 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/chargebee/models/metered_feature.rb', line 4 def type @type end |
Class Method Details
.archive(id, env = nil, headers = {}) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/chargebee/models/metered_feature.rb', line 18 def self.archive(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("metered_features",id.to_s,"archive_command"), {}, env, headers,nil, false, jsonKeys, , "meteredFeature", "archive") end |
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
9 10 11 12 13 14 15 16 |
# File 'lib/chargebee/models/metered_feature.rb', line 9 def self.create(params, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("metered_features"), params, env, headers,nil, false, jsonKeys, , "meteredFeature", "create") end |
.delete(id, env = nil, headers = {}) ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lib/chargebee/models/metered_feature.rb', line 36 def self.delete(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("metered_features",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, , "meteredFeature", "delete") end |
.reactivate(id, env = nil, headers = {}) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/chargebee/models/metered_feature.rb', line 27 def self.reactivate(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("metered_features",id.to_s,"reactivate_command"), {}, env, headers,nil, false, jsonKeys, , "meteredFeature", "reactivate") end |