Method: Waw::Validation::Signature#validate
- Defined in:
- lib/waw/validation/signature.rb
#validate(hash) ⇒ Object
Validates argument values given through a hash and returns a series of onfailure flags.
108 109 110 111 112 |
# File 'lib/waw/validation/signature.rb', line 108 def validate(hash) converted, failures = hash.dup, [] failures = @rules.collect{|rule| rule.validate(converted)}.compact failures.empty? ? [true, converted] : [false, failures] end |