Sha256: b4dc4d3d211ce805edf6864589006cbb9633c68d5ea34447f4997d5c4a889912

Contents?: true

Size: 884 Bytes

Versions: 2

Compression:

Stored size: 884 Bytes

Contents

module Mihari
  module Analyzers
    class Onyphe < Base
      attr_reader query: String
      attr_reader title: String
      attr_reader description: String
      attr_reader tags: Array[String]

      attr_reader interval: ::Integer

      def artifacts: () -> (Array[String] | Array[Mihari::Artifact])

      private

      PAGE_SIZE: ::Integer

      def configuration_keys: () -> ::Array["onyphe_api_key"]

      def api: () -> untyped

      def search_with_page: (String query, ?page: ::Integer page) -> Mihari::Structs::Onyphe::Response

      def search: () -> Array[Mihari::Structs::Onyphe::Response]

      #
      # Build an artifact from an Onyphe search API result
      #
      # @param [Structs::Onyphe::Result] result
      #
      # @return [Artifact]
      #
      def build_artifact: (Mihari::Structs::Onyphe::Result result) -> Mihari::Artifact
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mihari-3.12.0 sig/lib/mihari/analyzers/onyphe.rbs
mihari-3.11.0 sig/lib/mihari/analyzers/onyphe.rbs