Module: SMPTool::VirtualVolume::Utils::VolumeParamsValidator
- Defined in:
- lib/smp_tool/virtual_volume/utils/volume_params_validator.rb
Overview
Validates virtual volume params.
Class Method Summary collapse
Class Method Details
.call(params) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/smp_tool/virtual_volume/utils/volume_params_validator.rb', line 10 def self.call(params) result = VolumeParamsContract.new.call(params) raise ArgumentError, result.errors.to_h.to_a.join(": ") unless result.success? result.schema_result.output end |