Class: ChargeBee::Rule

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/rule.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, #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

#conditionsObject

Returns the value of attribute conditions.



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

def conditions
  @conditions
end

#created_atObject

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#deletedObject

Returns the value of attribute deleted.



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

def deleted
  @deleted
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#modified_atObject

Returns the value of attribute modified_at.



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

def modified_at
  @modified_at
end

#namespaceObject

Returns the value of attribute namespace.



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

def namespace
  @namespace
end

#outcomeObject

Returns the value of attribute outcome.



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

def outcome
  @outcome
end

#rule_nameObject

Returns the value of attribute rule_name.



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

def rule_name
  @rule_name
end

#rule_orderObject

Returns the value of attribute rule_order.



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

def rule_order
  @rule_order
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

Class Method Details

.retrieve(id, env = nil, headers = {}) ⇒ Object

OPERATIONS




10
11
12
13
14
# File 'lib/chargebee/models/rule.rb', line 10

def self.retrieve(id, env=nil, headers={})
  jsonKeys = { 
  }
  Request.send('get', uri_path("rules",id.to_s), {}, env, headers,nil, false, jsonKeys)
end