Class: Mihari::Enrichers::MMDB

Inherits:
Base show all
Defined in:
lib/mihari/enrichers/mmdb.rb

Overview

MMDB enricher

Constant Summary

Constants included from Concerns::Retriable

Concerns::Retriable::DEFAULT_CONDITION, Concerns::Retriable::RETRIABLE_ERRORS

Instance Attribute Summary

Attributes inherited from Actor

#options

Instance Method Summary collapse

Methods inherited from Base

inherited, #initialize, #result

Methods inherited from Actor

#initialize, key, key_aliases, keys, #result, #retry_exponential_backoff, #retry_interval, #retry_times, #timeout, type, #validate_configuration!

Methods included from Concerns::Retriable

#retry_on_error

Methods included from Concerns::Configurable

#configuration_keys?, #configured?

Constructor Details

This class inherits a constructor from Mihari::Enrichers::Base

Instance Method Details

#call(ip) ⇒ Mihari::Structs::MMDB::Response

Query MMDB



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

def call(ip)
  client.query ip
end