Class: Sqreen::Rules::MatcherRuleCB
- Inherits:
-
RuleCB
- Object
- CB
- FrameworkCB
- RuleCB
- Sqreen::Rules::MatcherRuleCB
- Includes:
- Matcher
- Defined in:
- lib/sqreen/rules/matcher_rule.rb
Overview
A configurable matcher rule
Direct Known Subclasses
Constant Summary
Constants included from Matcher
Sqreen::Rules::Matcher::ANYWHERE_OPT, Sqreen::Rules::Matcher::MATCH_PREDICATE
Constants inherited from RuleCB
Constants included from CallCountable
CallCountable::COUNT_CALLS, CallCountable::FAILING, CallCountable::POST, CallCountable::PRE
Constants inherited from CB
Instance Attribute Summary
Attributes included from Matcher
Attributes inherited from RuleCB
Attributes included from CallCountable
#call_count_interval, #call_counts
Attributes inherited from FrameworkCB
Attributes inherited from CB
#klass, #method, #overtimeable
Instance Method Summary collapse
-
#initialize(*args) ⇒ MatcherRuleCB
constructor
A new instance of MatcherRuleCB.
Methods included from Matcher
#match, #prepare, prepare_re_pattern
Methods inherited from RuleCB
#advise_action, #overtime!, #priority, #record_event, #record_exception, #rule_name, #rulespack_id
Methods included from CallCountable
#count_callback_calls, #failing_with_count, #post_with_count, #pre_with_count
Methods included from Conditionable
#condition_callbacks, #failing_with_conditions, #post_with_conditions, #pre_with_conditions
Methods inherited from FrameworkCB
#record_observation, #whitelisted?
Methods inherited from CB
#failing?, #framework, #overtime!, #post?, #pre?, #priority, #to_s, #whitelisted?
Constructor Details
#initialize(*args) ⇒ MatcherRuleCB
Returns a new instance of MatcherRuleCB.
134 135 136 137 |
# File 'lib/sqreen/rules/matcher_rule.rb', line 134 def initialize(*args) super(*args) prepare(@data['values']) end |