Class: Tabulard::Messaging::Validations::BaseValidator
- Inherits:
-
Object
- Object
- Tabulard::Messaging::Validations::BaseValidator
show all
- Extended by:
- DSL
- Defined in:
- lib/tabulard/messaging/validations/base_validator.rb
Instance Method Summary
collapse
Methods included from DSL
cell, col, nil_code_data, row, table
Instance Method Details
#validate(message) ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/tabulard/messaging/validations/base_validator.rb', line 12
def validate(message)
errors = []
validate_and_append_code(message, errors)
validate_and_append_code_data(message, errors)
validate_and_append_scope(message, errors)
validate_and_append_scope_data(message, errors)
return if errors.empty?
raise InvalidMessage, build_exception_message(message, errors)
end
|
#validate_code(_message) ⇒ Object
25
26
27
|
# File 'lib/tabulard/messaging/validations/base_validator.rb', line 25
def validate_code(_message)
true
end
|
#validate_code_data(_message) ⇒ Object
29
30
31
|
# File 'lib/tabulard/messaging/validations/base_validator.rb', line 29
def validate_code_data(_message)
true
end
|
#validate_scope(_message) ⇒ Object
33
34
35
|
# File 'lib/tabulard/messaging/validations/base_validator.rb', line 33
def validate_scope(_message)
true
end
|
#validate_scope_data(_message) ⇒ Object
37
38
39
|
# File 'lib/tabulard/messaging/validations/base_validator.rb', line 37
def validate_scope_data(_message)
true
end
|