Class: ChargeBee::Alert
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.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#metered_feature_id ⇒ Object
Returns the value of attribute metered_feature_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
-
#type ⇒ Object
Returns the value of attribute type.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
- .application_alerts_for_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
-
.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, #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.
4 5 6 |
# File 'lib/chargebee/models/alert.rb', line 4 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/chargebee/models/alert.rb', line 4 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/alert.rb', line 4 def id @id end |
#meta ⇒ Object
Returns the value of attribute meta.
4 5 6 |
# File 'lib/chargebee/models/alert.rb', line 4 def @meta end |
#metered_feature_id ⇒ Object
Returns the value of attribute metered_feature_id.
4 5 6 |
# File 'lib/chargebee/models/alert.rb', line 4 def metered_feature_id @metered_feature_id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/chargebee/models/alert.rb', line 4 def name @name end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/chargebee/models/alert.rb', line 4 def status @status end |
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
4 5 6 |
# File 'lib/chargebee/models/alert.rb', line 4 def subscription_id @subscription_id end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/chargebee/models/alert.rb', line 4 def type @type end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/chargebee/models/alert.rb', line 4 def updated_at @updated_at end |
Class Method Details
.application_alerts_for_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
51 52 53 54 55 56 |
# File 'lib/chargebee/models/alert.rb', line 51 def self.application_alerts_for_subscription(id, params={}, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("subscriptions",id.to_s,"applicable_alerts"), params, env, headers,nil, false, jsonKeys, ) end |
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
10 11 12 13 14 15 16 17 |
# File 'lib/chargebee/models/alert.rb', line 10 def self.create(params, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("alerts"), params, env, headers,nil, false, jsonKeys, ) end |
.delete(id, env = nil, headers = {}) ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'lib/chargebee/models/alert.rb', line 42 def self.delete(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("alerts",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, ) end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/chargebee/models/alert.rb', line 26 def self.list(params={}, env=nil, headers={}) jsonKeys = { } = {} Request.send_list_request('get', uri_path("alerts"), params, env, headers,nil, false, jsonKeys, ) end |
.retrieve(id, env = nil, headers = {}) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/chargebee/models/alert.rb', line 19 def self.retrieve(id, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("alerts",id.to_s), {}, env, headers,nil, false, jsonKeys, ) end |
.update(id, params = {}, env = nil, headers = {}) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/chargebee/models/alert.rb', line 33 def self.update(id, params={}, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("alerts",id.to_s), params, env, headers,nil, false, jsonKeys, ) end |