Class: Threshold::SuppressionValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/threshold/suppression.rb

Overview

Create a Suppression validator

Instance Method Summary collapse

Instance Method Details

#comment_set?(entity) ⇒ Boolean

Returns:

  • (Boolean)

29
30
31
# File 'lib/threshold/suppression.rb', line 29

def comment_set?(entity)
    entity.comment
end

#ip_set?(entity) ⇒ Boolean

Returns:

  • (Boolean)

37
38
39
# File 'lib/threshold/suppression.rb', line 37

def ip_set?(entity)
    entity.ip
end

#track_by_set?(entity) ⇒ Boolean

Returns:

  • (Boolean)

33
34
35
# File 'lib/threshold/suppression.rb', line 33

def track_by_set?(entity)
    entity.track_by
end