Class: Mihari::Enrichers::Base

Inherits:
Object
  • Object
show all
Includes:
Mixins::Configurable
Defined in:
lib/mihari/enrichers/base.rb

Direct Known Subclasses

GooglePublicDNS, IPInfo, Shodan, Whois

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Mixins::Configurable

#configuration_keys, #configuration_values, #configured?

Class Method Details

.inherited(child) ⇒ Object



9
10
11
12
# File 'lib/mihari/enrichers/base.rb', line 9

def inherited(child)
  super
  Mihari.enrichers << child
end

Instance Method Details

#valid?Boolean

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/mihari/enrichers/base.rb', line 16

def valid?
  raise NotImplementedError, "You must implement #{self.class}##{__method__}"
end