Class: ChargeBee::Feature
- Defined in:
- lib/chargebee/models/feature.rb
Defined Under Namespace
Classes: Level
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#levels ⇒ Object
Returns the value of attribute levels.
-
#name ⇒ Object
Returns the value of attribute name.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
-
#unit ⇒ Object
Returns the value of attribute unit.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
- .activate(id, env = nil, headers = {}) ⇒ Object
- .archive(id, env = nil, headers = {}) ⇒ Object
- .create(params, env = nil, headers = {}) ⇒ Object
- .delete(id, env = nil, headers = {}) ⇒ Object
-
.list(params = {}, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .reactivate(id, 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, #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
#created_at ⇒ Object
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/chargebee/models/feature.rb', line 8 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
8 9 10 |
# File 'lib/chargebee/models/feature.rb', line 8 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/chargebee/models/feature.rb', line 8 def id @id end |
#levels ⇒ Object
Returns the value of attribute levels.
8 9 10 |
# File 'lib/chargebee/models/feature.rb', line 8 def levels @levels end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/chargebee/models/feature.rb', line 8 def name @name end |
#resource_version ⇒ Object
Returns the value of attribute resource_version.
8 9 10 |
# File 'lib/chargebee/models/feature.rb', line 8 def resource_version @resource_version end |
#status ⇒ Object
Returns the value of attribute status.
8 9 10 |
# File 'lib/chargebee/models/feature.rb', line 8 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/chargebee/models/feature.rb', line 8 def type @type end |
#unit ⇒ Object
Returns the value of attribute unit.
8 9 10 |
# File 'lib/chargebee/models/feature.rb', line 8 def unit @unit end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/chargebee/models/feature.rb', line 8 def updated_at @updated_at end |
Class Method Details
.activate(id, env = nil, headers = {}) ⇒ Object
55 56 57 58 59 60 61 62 |
# File 'lib/chargebee/models/feature.rb', line 55 def self.activate(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("features",id.to_s,"activate_command"), {}, env, headers,nil, false, jsonKeys, ) end |
.archive(id, env = nil, headers = {}) ⇒ Object
64 65 66 67 68 69 70 71 |
# File 'lib/chargebee/models/feature.rb', line 64 def self.archive(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("features",id.to_s,"archive_command"), {}, env, headers,nil, false, jsonKeys, ) end |
.create(params, env = nil, headers = {}) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/chargebee/models/feature.rb', line 21 def self.create(params, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("features"), params, env, headers,nil, false, jsonKeys, ) end |
.delete(id, env = nil, headers = {}) ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'lib/chargebee/models/feature.rb', line 46 def self.delete(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("features",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, ) end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
OPERATIONS
14 15 16 17 18 19 |
# File 'lib/chargebee/models/feature.rb', line 14 def self.list(params={}, env=nil, headers={}) jsonKeys = { } = {} Request.send_list_request('get', uri_path("features"), params, env, headers,nil, false, jsonKeys, ) end |
.reactivate(id, env = nil, headers = {}) ⇒ Object
73 74 75 76 77 78 79 80 |
# File 'lib/chargebee/models/feature.rb', line 73 def self.reactivate(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("features",id.to_s,"reactivate_command"), {}, env, headers,nil, false, jsonKeys, ) end |
.retrieve(id, env = nil, headers = {}) ⇒ Object
39 40 41 42 43 44 |
# File 'lib/chargebee/models/feature.rb', line 39 def self.retrieve(id, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("features",id.to_s), {}, env, headers,nil, false, jsonKeys, ) end |
.update(id, params = {}, env = nil, headers = {}) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/chargebee/models/feature.rb', line 30 def self.update(id, params={}, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("features",id.to_s), params, env, headers,nil, false, jsonKeys, ) end |