Class: InsightsHit
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- InsightsHit
- Includes:
- Authorizable
- Defined in:
- app/models/insights_hit.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.find_with_playbook(key, operator, value) ⇒ Object
19 20 21 |
# File 'app/models/insights_hit.rb', line 19 def self.find_with_playbook(key, operator, value) { joins: :rule } end |
Instance Method Details
#has_playbook? ⇒ Boolean
23 24 25 |
# File 'app/models/insights_hit.rb', line 23 def has_playbook? !rule.nil? end |
#host_uuid ⇒ Object
27 28 29 |
# File 'app/models/insights_hit.rb', line 27 def host_uuid insights_facet.uuid end |