Sha256: cfdd08d4db40eba154b9cb612a2a7e5a1be79e292640092b35764bfbc7e0cf9a

Contents?: true

Size: 670 Bytes

Versions: 3

Compression:

Stored size: 670 Bytes

Contents

require "dry/types"

module Mihari
  module Types
    include Dry.Types()

    Int = Strict::Integer
    Nil = Strict::Nil
    Hash = Strict::Hash
    String = Strict::String
    Double = Strict::Float | Strict::Integer
    DateTime = Strict::DateTime

    DataTypes = Types::String.enum(*ALLOWED_DATA_TYPES)

    AnalyzerTypes = Types::String.enum(
      "binaryedge",
      "censys",
      "circl",
      "dnpedia",
      "dnstwister",
      "onyphe",
      "otx",
      "passivetotal",
      "pt",
      "pulsedive",
      "securitytrails",
      "shodan",
      "st",
      "virustotal_intelligence",
      "virustotal",
      "vt_intel",
      "vt"
    )
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mihari-3.9.2 lib/mihari/types.rb
mihari-3.9.1 lib/mihari/types.rb
mihari-3.9.0 lib/mihari/types.rb