Class: Ronin::App::Validations::ReconParams
- Inherits:
-
Dry::Validation::Contract
- Object
- Dry::Validation::Contract
- Ronin::App::Validations::ReconParams
- Includes:
- Recon::Value::Parser
- Defined in:
- lib/ronin/app/validations/recon_params.rb
Overview
Validations for the form params submitted to POST /recon
.
Constant Summary collapse
- VALUE_REGEX =
Regex to match a value string.
/#{IP_RANGE_REGEX}|#{IP_REGEX}|#{WEBSITE_REGEX}|#{WILDCARD_REGEX}|#{HOSTNAME_REGEX}|#{DOMAIN_REGEX}/
Class Method Summary collapse
-
.call(params) ⇒ Dry::Validation::Result
Initializes and calls the validation contract.
Class Method Details
.call(params) ⇒ Dry::Validation::Result
Initializes and calls the validation contract.
79 80 81 |
# File 'lib/ronin/app/validations/recon_params.rb', line 79 def self.call(params) new.call(params) end |