Sha256: 5d57186f4177f96c400c8e88e4a817f6796446b785c9ccfa37648bef6e512ee6

Contents?: true

Size: 584 Bytes

Versions: 1

Compression:

Stored size: 584 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",
      "pulsedive",
      "securitytrails",
      "shodan",
      "virustotal_intelligence",
      "virustotal"
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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