Class: Vizcore::CLISupport::SceneValidator::Issue
- Inherits:
-
Struct
- Object
- Struct
- Vizcore::CLISupport::SceneValidator::Issue
- Defined in:
- lib/vizcore/cli/scene_validator.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#severity ⇒ Object
Returns the value of attribute severity.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code
29 30 31 |
# File 'lib/vizcore/cli/scene_validator.rb', line 29 def code @code end |
#message ⇒ Object
Returns the value of attribute message
29 30 31 |
# File 'lib/vizcore/cli/scene_validator.rb', line 29 def @message end |
#severity ⇒ Object
Returns the value of attribute severity
29 30 31 |
# File 'lib/vizcore/cli/scene_validator.rb', line 29 def severity @severity end |
Instance Method Details
#error? ⇒ Boolean
30 31 32 |
# File 'lib/vizcore/cli/scene_validator.rb', line 30 def error? severity == :error end |
#to_h ⇒ Object
34 35 36 |
# File 'lib/vizcore/cli/scene_validator.rb', line 34 def to_h { severity: severity, code: code, message: } end |