Sha256: 3cd9250cf9aec0c58ec158ab75afc54dd06412d5f5a83ca996c4a1f567f8966d
Contents?: true
Size: 833 Bytes
Versions: 5
Compression:
Stored size: 833 Bytes
Contents
# frozen_string_literal: true require "normalize_country" module Mihari module Analyzers 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 @client ||= Clients::Onyphe.new(api_key: api_key, interval: interval) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems