class Threatinator::Event
Constants
- VALID_TYPES
Attributes
feed_name[R]
feed_provider[R]
fqdns[R]
ipv4s[R]
type[R]
urls[R]
Public Class Methods
new(opts = {})
click to toggle source
@param [Hash] opts @option opts [String] :feed_provider The name of the feed provider @option opts [String] :feed_name The name of the feed @option opts [Symbol] :type The 'type' of feed. @option opts [#each] :ipv4s A collection of ipv4s @option opts [#each] :fqdns A collection of FQDNs @option opts [#each] :urls A collection of Urls
Calls superclass method
Threatinator::Model::Base::new
# File lib/threatinator/event.rb, line 28 def initialize(opts = {}) @feed_provider = opts[:feed_provider] @feed_name = opts[:feed_name] @type = opts[:type] @ipv4s = Threatinator::Model::Observables::Ipv4Collection.new(opts[:ipv4s] || []) @fqdns = Threatinator::Model::Observables::FqdnCollection.new(opts[:fqdns] || []) @urls = Threatinator::Model::Observables::UrlCollection.new(opts[:urls] || []) super() end