Class: ClientValidation::AdapterBase

Inherits:
Object
  • Object
show all
Defined in:
lib/client_validations/adapter_base.rb,
lib/client_validations/adapter_base/validation_response.rb

Overview

The base class of an adapter.

Defined Under Namespace

Classes: ValidationResponse

Class Method Summary collapse

Class Method Details

.response(name, &block) ⇒ Object



4
5
6
# File 'lib/client_validations/adapter_base.rb', line 4

def self.response(name, &block)
  self.validation_responses[name] = ValidationResponse.new(&block)
end