Class: RuleEngine::MatchResult

Inherits:
Object
  • Object
show all
Defined in:
lib/cirrocumulus/rules/engine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_factsObject (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

#parametersObject

Returns the value of attribute parameters.



45
46
47
# File 'lib/cirrocumulus/rules/engine.rb', line 45

def parameters
  @parameters
end

#ruleObject (readonly)

Returns the value of attribute rule.



43
44
45
# File 'lib/cirrocumulus/rules/engine.rb', line 43

def rule
  @rule
end