Class: Clef::Core::ValidationIssue
- Inherits:
-
Struct
- Object
- Struct
- Clef::Core::ValidationIssue
- Defined in:
- lib/clef/core/validation.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#path ⇒ Object
Returns the value of attribute path.
-
#severity ⇒ Object
Returns the value of attribute severity.
Instance Method Summary collapse
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message
5 6 7 |
# File 'lib/clef/core/validation.rb', line 5 def @message end |
#path ⇒ Object
Returns the value of attribute path
5 6 7 |
# File 'lib/clef/core/validation.rb', line 5 def path @path end |
#severity ⇒ Object
Returns the value of attribute severity
5 6 7 |
# File 'lib/clef/core/validation.rb', line 5 def severity @severity end |
Instance Method Details
#error? ⇒ Boolean
10 11 12 |
# File 'lib/clef/core/validation.rb', line 10 def error? severity == :error end |
#warning? ⇒ Boolean
6 7 8 |
# File 'lib/clef/core/validation.rb', line 6 def warning? severity == :warning end |