Module: Mihari::Types

Defined in:
lib/mihari/types.rb

Overview

dry-type based types

Constant Summary collapse

Int =
Strict::Integer
Nil =
Strict::Nil
Hash =
Strict::Hash
String =
Strict::String
Bool =
Strict::Bool
Double =
Strict::Float | Strict::Integer
DateTime =
Strict::DateTime
NetworkDataTypes =
Types::String.enum("ip", "domain", "url")
DataTypes =
Types::String.enum(
  *[NetworkDataTypes.values, "hash", "mail"].flatten
)
HTTPRequestMethods =
Types::String.enum("GET", "POST")