Class: WorkflowTemplate::Adapters::Validation::Generic::Validator
- Inherits:
-
Object
- Object
- WorkflowTemplate::Adapters::Validation::Generic::Validator
- Includes:
- Validation::Adapter::Abstract::Validator
- Defined in:
- lib/workflow_template/adapters/validation/generic/validator.rb
Instance Method Summary collapse
Methods included from Validation::Adapter::Abstract::Validator
Instance Method Details
#call(object, **opts) ⇒ Object
12 13 14 15 16 |
# File 'lib/workflow_template/adapters/validation/generic/validator.rb', line 12 def call(object, **opts) call_foreign(object, **opts) rescue StandardError => e raise Fatal::ForeignCodeError, e end |
#describe ⇒ Object
18 19 20 |
# File 'lib/workflow_template/adapters/validation/generic/validator.rb', line 18 def describe "#{self.class.name.split('::').last.downcase} validation" end |