Sha256: dc3c66986affa3e86c251b1babdc7fdb7b36b029b03035ee1fd848dcd2e49d35
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
# frozen_string_literal: true module Mihari module Analyzers class DNPedia < Base param :query def artifacts search || [] end private def client @client ||= Clients::DNPedia.new end # # Search # # @return [Array<Mihari::Artifact>] # def search res = client.search(query) rows = res["rows"] || [] rows.map do |row| data = [row["name"], row["zoneid"]].join(".") Artifact.new(data: data, source: source, metadata: row) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mihari-5.1.1 | lib/mihari/analyzers/dnpedia.rb |