Class: RuleEngine::MatchResult
- Inherits:
-
Object
- Object
- RuleEngine::MatchResult
- Defined in:
- lib/cirrocumulus/rules/engine.rb
Instance Attribute Summary collapse
-
#matched_facts ⇒ Object
readonly
Returns the value of attribute matched_facts.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#rule ⇒ Object
readonly
Returns the value of attribute rule.
Instance Method Summary collapse
-
#initialize(rule) ⇒ MatchResult
constructor
A new instance of MatchResult.
Constructor Details
#initialize(rule) ⇒ MatchResult
Returns a new instance of MatchResult.
37 38 39 40 41 |
# File 'lib/cirrocumulus/rules/engine.rb', line 37 def initialize(rule) @rule = rule @matched_facts = [] @parameters = nil end |
Instance Attribute Details
#matched_facts ⇒ Object (readonly)
Returns the value of attribute matched_facts.
44 45 46 |
# File 'lib/cirrocumulus/rules/engine.rb', line 44 def matched_facts @matched_facts end |
#parameters ⇒ Object
Returns the value of attribute parameters.
45 46 47 |
# File 'lib/cirrocumulus/rules/engine.rb', line 45 def parameters @parameters end |
#rule ⇒ Object (readonly)
Returns the value of attribute rule.
43 44 45 |
# File 'lib/cirrocumulus/rules/engine.rb', line 43 def rule @rule end |