Class: RuleEngine::RuleDescription
- Inherits:
-
Object
- Object
- RuleEngine::RuleDescription
- Defined in:
- lib/cirrocumulus/rules/engine.rb
Overview
Rule representation. After processing a ruleset, all rules are wrapped with this object.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, conditions, options, code) ⇒ RuleDescription
constructor
A new instance of RuleDescription.
Constructor Details
#initialize(name, conditions, options, code) ⇒ RuleDescription
Returns a new instance of RuleDescription.
12 13 14 15 16 17 |
# File 'lib/cirrocumulus/rules/engine.rb', line 12 def initialize(name, conditions, , code) @name = name @conditions = conditions @options = @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/cirrocumulus/rules/engine.rb', line 10 def code @code end |
#conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
8 9 10 |
# File 'lib/cirrocumulus/rules/engine.rb', line 8 def conditions @conditions end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/cirrocumulus/rules/engine.rb', line 7 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/cirrocumulus/rules/engine.rb', line 9 def @options end |