Class: FIDIUS::EvasionDB::Knowledge::IdmefEvent
- Inherits:
-
Connection
- Object
- ActiveRecord::Base
- Connection
- FIDIUS::EvasionDB::Knowledge::IdmefEvent
- Defined in:
- lib/evasion-db/knowledge/idmef_event.rb
Overview
model for local store generated idmef events and relate them to an executed attack
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.table_name ⇒ Object
7 8 9 |
# File 'lib/evasion-db/knowledge/idmef_event.rb', line 7 def self.table_name "idmef_events" end |
Instance Method Details
#payload ⇒ Object
11 12 13 14 |
# File 'lib/evasion-db/knowledge/idmef_event.rb', line 11 def payload return [] if self[:payload] == nil self[:payload] end |
#payload_size ⇒ Object
16 17 18 19 |
# File 'lib/evasion-db/knowledge/idmef_event.rb', line 16 def payload_size return self[:payload].size if self[:payload] return 0 end |