Class: WorkflowTemplate::Validation::Error
- Inherits:
-
Error
- Object
- Error
- WorkflowTemplate::Validation::Error
- Defined in:
- lib/workflow_template/validation/error.rb
Instance Attribute Summary collapse
-
#failure ⇒ Object
readonly
Returns the value of attribute failure.
Instance Method Summary collapse
-
#initialize(failure) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(failure) ⇒ Error
Returns a new instance of Error.
10 11 12 13 |
# File 'lib/workflow_template/validation/error.rb', line 10 def initialize(failure) @failure = failure super(failure.describe) end |
Instance Attribute Details
#failure ⇒ Object (readonly)
Returns the value of attribute failure.
8 9 10 |
# File 'lib/workflow_template/validation/error.rb', line 8 def failure @failure end |