Sha256: 53b8331be5c6bdb62a4059f0170c57bb5a7621aeda5b1199dd5a25540361b4aa
Contents?: true
Size: 858 Bytes
Versions: 4
Compression:
Stored size: 858 Bytes
Contents
# frozen_string_literal: true module Mihari module Analyzers class BinaryEdge < Base # @return [String, nil] attr_reader :api_key # # @param [String] query # @param [Hash, nil] options # @param [String, nil] api_key # def initialize(query, options: nil, api_key: nil) super(query, options: options) @api_key = api_key || Mihari.config.binaryedge_api_key end def artifacts client.search_with_pagination(query, pagination_limit: pagination_limit).map(&:artifacts).flatten end def configuration_keys %w[binaryedge_api_key] end private # # # @return [Mihari::Clients::BinaryEdge] # def client @client ||= Clients::BinaryEdge.new(api_key: api_key, interval: interval) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems