Class: Ace::Lint::Organisms::LintDoctor::DiagnosticResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/ace/lint/organisms/lint_doctor.rb

Overview

Diagnostic result structure

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



17
18
19
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 17

def category
  @category
end

#detailsObject

Returns the value of attribute details

Returns:

  • (Object)

    the current value of details



17
18
19
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 17

def details
  @details
end

#levelObject

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



17
18
19
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 17

def level
  @level
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



17
18
19
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 17

def message
  @message
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 18

def error?
  level == :error
end

#info?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 26

def info?
  level == :info
end

#warning?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/ace/lint/organisms/lint_doctor.rb', line 22

def warning?
  level == :warning
end