Class: FIDIUS::EvasionDB::Knowledge::IdmefEvent

Inherits:
Connection
  • Object
show all
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_nameObject



7
8
9
# File 'lib/evasion-db/knowledge/idmef_event.rb', line 7

def self.table_name
  "idmef_events"
end

Instance Method Details

#payloadObject



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_sizeObject



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