Module: Savon::Validation
Instance Method Summary collapse
-
#validate!(type, value) ⇒ Object
Validates a given
value
of a giventype
.
Instance Method Details
#validate!(type, value) ⇒ Object
Validates a given value
of a given type
. Raises an ArgumentError in case the value is not valid.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/savon/validation.rb', line 6 def validate!(type, value) case type when :endpoint then validate_endpoint value when :soap_version then validate_soap_version value when :soap_body then validate_soap_body value when :response_process then validate_response_process value when :wsse_credentials then validate_wsse_credentials value end true end |