Sha256: fdb3c13d211e9db14ad26cf6c631e326f76565cef8d6ee0bc2996b31d7d4a9b2
Contents?: true
Size: 935 Bytes
Versions: 7
Compression:
Stored size: 935 Bytes
Contents
# frozen_string_literal: true require "normalize_country" module Mihari module Analyzers # # Onyphe analyzer # class Onyphe < 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.onyphe_api_key end def artifacts client.datascan_with_pagination( query, pagination_limit: pagination_limit ).map(&:artifacts).flatten end def configuration_keys %w[onyphe_api_key] end private def client Clients::Onyphe.new( api_key: api_key, pagination_interval: pagination_interval, timeout: timeout ) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems