Class: Ronin::App::Validations::VulnsParams

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

Overview

Validations for form params submitted to POST /vulns.

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.



76
77
78
# File 'lib/ronin/app/validations/vulns_params.rb', line 76

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