Sha256: b85b71dde6dcf34d1fad62414d67db077676457c0636f335ad19329c3ebf85fa

Contents?: true

Size: 638 Bytes

Versions: 1

Compression:

Stored size: 638 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

    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

1 entries across 1 versions & 1 rubygems

Version Path
mihari-3.8.1 lib/mihari/types.rb