Class: WorkflowTemplate::Adapters::Validation::Generic::Validator

Inherits:
Object
  • Object
show all
Includes:
Validation::Adapter::Abstract::Validator
Defined in:
lib/workflow_template/adapters/validation/generic/validator.rb

Direct Known Subclasses

Block, Object

Instance Method Summary collapse

Methods included from Validation::Adapter::Abstract::Validator

#initialize, #validate

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

#describeObject



18
19
20
# File 'lib/workflow_template/adapters/validation/generic/validator.rb', line 18

def describe
  "#{self.class.name.split('::').last.downcase} validation"
end