Class: Ronin::App::Validations::NmapParams

Inherits:
Dry::Validation::Contract
  • Object
show all
Defined in:
lib/ronin/app/validations/nmap_params.rb

Overview

Validations for the form params submitted to POST /nmap.

Class Method Summary collapse

Class Method Details

.call(params) ⇒ Dry::Validation::Result

Initializes and calls the validation contract.

Parameters:

  • params (Hash{String => Object})

    The HTTP params to validate.

Returns:

  • (Dry::Validation::Result)

    The validation result.



176
177
178
# File 'lib/ronin/app/validations/nmap_params.rb', line 176

def self.call(params)
  new.call(params)
end