Class: Ace::Lint::Organisms::LintDoctor::DiagnosticResult
- Inherits:
-
Struct
- Object
- Struct
- Ace::Lint::Organisms::LintDoctor::DiagnosticResult
- Defined in:
- lib/ace/lint/organisms/lint_doctor.rb
Overview
Diagnostic result structure
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#details ⇒ Object
Returns the value of attribute details.
-
#level ⇒ Object
Returns the value of attribute level.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category
17 18 19 |
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 17 def category @category end |
#details ⇒ Object
Returns the value of attribute details
17 18 19 |
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 17 def details @details end |
#level ⇒ Object
Returns the value of attribute level
17 18 19 |
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 17 def level @level end |
#message ⇒ Object
Returns the value of attribute message
17 18 19 |
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 17 def @message end |
Instance Method Details
#error? ⇒ Boolean
18 19 20 |
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 18 def error? level == :error end |
#info? ⇒ Boolean
26 27 28 |
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 26 def info? level == :info end |
#warning? ⇒ Boolean
22 23 24 |
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 22 def warning? level == :warning end |