Class: Threshold::EventFilterValidator

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

Overview

Create an Event Filter validator

Instance Method Summary collapse

Instance Method Details

#comment_set?(entity) ⇒ Boolean

Returns:

  • (Boolean)


61
62
63
# File 'lib/threshold/event_filter.rb', line 61

def comment_set?(entity)
    entity.comment
end

#track_by_set?(entity) ⇒ Boolean

Returns:

  • (Boolean)


65
66
67
# File 'lib/threshold/event_filter.rb', line 65

def track_by_set?(entity)
    entity.track_by
end

#type_set?(type) ⇒ Boolean

Returns:

  • (Boolean)


69
70
71
# File 'lib/threshold/event_filter.rb', line 69

def type_set?(type)
    entity.type
end