Class: LightRulesEngine::BaseRule
- Inherits:
-
Object
- Object
- LightRulesEngine::BaseRule
- Defined in:
- lib/light_rules_engine/base_rule.rb
Instance Attribute Summary collapse
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(conditions:, source:) ⇒ BaseRule
constructor
A new instance of BaseRule.
Constructor Details
#initialize(conditions:, source:) ⇒ BaseRule
Returns a new instance of BaseRule.
3 4 5 6 |
# File 'lib/light_rules_engine/base_rule.rb', line 3 def initialize(conditions:, source:) @conditions = conditions @source = source end |
Instance Attribute Details
#conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
8 9 10 |
# File 'lib/light_rules_engine/base_rule.rb', line 8 def conditions @conditions end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
8 9 10 |
# File 'lib/light_rules_engine/base_rule.rb', line 8 def source @source end |