Class: OFlow::ValidateError::Problem
- Inherits:
-
Object
- Object
- OFlow::ValidateError::Problem
- Defined in:
- lib/oflow/errors.rb
Constant Summary
- LINK_ERROR =
'link_error'
- MISSING_ERROR =
'missing_link_error'
- INPUT_ERROR =
'input_link_error'
Instance Attribute Summary (collapse)
-
- (Object) kind
readonly
Returns the value of attribute kind.
-
- (Object) message
readonly
Returns the value of attribute message.
-
- (Object) task_name
readonly
Returns the value of attribute task_name.
Instance Method Summary (collapse)
-
- (Problem) initialize(task_name, kind, msg)
constructor
A new instance of Problem.
- - (Object) to_s (also: #inpsect)
Constructor Details
- (Problem) initialize(task_name, kind, msg)
Returns a new instance of Problem
67 68 69 70 71 |
# File 'lib/oflow/errors.rb', line 67 def initialize(task_name, kind, msg) @task_name = task_name @kind = kind @message = msg end |
Instance Attribute Details
- (Object) kind (readonly)
Returns the value of attribute kind
64 65 66 |
# File 'lib/oflow/errors.rb', line 64 def kind @kind end |
- (Object) message (readonly)
Returns the value of attribute message
65 66 67 |
# File 'lib/oflow/errors.rb', line 65 def @message end |
- (Object) task_name (readonly)
Returns the value of attribute task_name
63 64 65 |
# File 'lib/oflow/errors.rb', line 63 def task_name @task_name end |
Instance Method Details
- (Object) to_s Also known as: inpsect
73 74 75 |
# File 'lib/oflow/errors.rb', line 73 def to_s() "#{@task_name}: #{@message}" end |