Class: Threshold::RateFilterValidator
- Inherits:
-
Object
- Object
- Threshold::RateFilterValidator
- Defined in:
- lib/threshold/rate_filter.rb
Overview
Create a Rate Filter validator
Instance Method Summary collapse
Instance Method Details
#comment_set?(entity) ⇒ Boolean
84 85 86 |
# File 'lib/threshold/rate_filter.rb', line 84 def comment_set?(entity) entity.comment end |
#not_track_by_rule?(entity) ⇒ Boolean
88 89 90 91 92 93 94 |
# File 'lib/threshold/rate_filter.rb', line 88 def not_track_by_rule?(entity) if entity.apply_to == nil entity.track_by == false else entity.track_by != 'rule' end end |