Class: ActiveAttack::Detection
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ActiveAttack::Detection
- Defined in:
- app/models/active_attack/detection.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.create_descr(descr) ⇒ Object
5 6 7 8 |
# File 'app/models/active_attack/detection.rb', line 5 def self.create_descr(descr) xmd = find_or_create_by(description:descr) xmd end |
Instance Method Details
#convert_to_json ⇒ Object
10 11 12 |
# File 'app/models/active_attack/detection.rb', line 10 def convert_to_json description end |