Class: Threatinator::Event
- Inherits:
-
Object
- Object
- Threatinator::Event
- Includes:
- PropertyDefiner
- Defined in:
- lib/threatinator/event.rb
Constant Summary collapse
- VALID_TYPES =
Set.new([:c2, :attacker, :malware_host, :spamming, :scanning, :phishing])
Instance Method Summary collapse
- #add_fqdn(fqdn) ⇒ Object
- #add_ipv4(ipv4) ⇒ Object
-
#initialize(opts = {}) ⇒ Event
constructor
A new instance of Event.
Methods included from PropertyDefiner
#_get, #_parse_properties, #_prop, #_properties, #_set, included
Constructor Details
#initialize(opts = {}) ⇒ Event
Returns a new instance of Event.
10 11 12 |
# File 'lib/threatinator/event.rb', line 10 def initialize(opts = {}) _parse_properties(opts) end |
Instance Method Details
#add_fqdn(fqdn) ⇒ Object
24 25 26 |
# File 'lib/threatinator/event.rb', line 24 def add_fqdn(fqdn) self.fqdns << fqdn end |
#add_ipv4(ipv4) ⇒ Object
20 21 22 |
# File 'lib/threatinator/event.rb', line 20 def add_ipv4(ipv4) self.ipv4s << ipv4 end |