Sha256: be18c83654cc2be6adc64d7984ca250bbf3a077dd3f83b916cf86d7a1fd46ec4

Contents?: true

Size: 615 Bytes

Versions: 8

Compression:

Stored size: 615 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Enrichers
    #
    # Google Public DNS enricher
    #
    class GooglePublicDNS < Base
      #
      # Query Google Public DNS
      #
      # @param [String] name
      #
      # @return [Mihari::Structs::GooglePublicDNS::Response]
      #
      def call(name)
        client.query_all name
      end

      class << self
        #
        # @return [String]
        #
        def class_key
          "google_public_dns"
        end
      end

      private

      def client
        Clients::GooglePublicDNS.new(timeout: timeout)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mihari-7.1.1 lib/mihari/enrichers/google_public_dns.rb
mihari-7.1.0 lib/mihari/enrichers/google_public_dns.rb
mihari-7.0.5 lib/mihari/enrichers/google_public_dns.rb
mihari-7.0.4 lib/mihari/enrichers/google_public_dns.rb
mihari-7.0.3 lib/mihari/enrichers/google_public_dns.rb
mihari-7.0.2 lib/mihari/enrichers/google_public_dns.rb
mihari-7.0.1 lib/mihari/enrichers/google_public_dns.rb
mihari-7.0.0 lib/mihari/enrichers/google_public_dns.rb