Class: ChargeBee::Alert

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/alert.rb

Instance Attribute Summary collapse

Class Method Summary collapse

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_atObject

Returns the value of attribute created_at.



4
5
6
# File 'lib/chargebee/models/alert.rb', line 4

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/chargebee/models/alert.rb', line 4

def description
  @description
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/chargebee/models/alert.rb', line 4

def id
  @id
end

#metaObject

Returns the value of attribute meta.



4
5
6
# File 'lib/chargebee/models/alert.rb', line 4

def meta
  @meta
end

#metered_feature_idObject

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/chargebee/models/alert.rb', line 4

def name
  @name
end

#statusObject

Returns the value of attribute status.



4
5
6
# File 'lib/chargebee/models/alert.rb', line 4

def status
  @status
end

#subscription_idObject

Returns the value of attribute subscription_id.



4
5
6
# File 'lib/chargebee/models/alert.rb', line 4

def subscription_id
  @subscription_id
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/chargebee/models/alert.rb', line 4

def type
  @type
end

#updated_atObject

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 = { 
  }
  options = {}
  Request.send('get', uri_path("subscriptions",id.to_s,"applicable_alerts"), params, env, headers,nil, false, jsonKeys, options)
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 = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("alerts"), params, env, headers,nil, false, jsonKeys, options)
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 = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("alerts",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options)
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 = { 
  }
  options = {}
  Request.send_list_request('get', uri_path("alerts"), params, env, headers,nil, false, jsonKeys, options)
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 = { 
  }
  options = {}
  Request.send('get', uri_path("alerts",id.to_s), {}, env, headers,nil, false, jsonKeys, options)
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 = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("alerts",id.to_s), params, env, headers,nil, false, jsonKeys, options)
end