module Ant::Client::Validator
Allows to validate the responses from another service. Use it to rise exceptions when you detect there were an error.
Public Class Methods
build(config)
click to toggle source
# File lib/ant/client/validator.rb, line 14 def build(config) resource(:validators, config[:validator] || 'empty').new end
register_validator(name, klass)
click to toggle source
# File lib/ant/client/validator.rb, line 18 def register_validator(name, klass) register(:validators, name, klass) end