class XCActivityLog::IDEActivityLogSection::Severity

Constants

ERROR
SUCCESS
TEST_FAILURE
WARNING

Attributes

severity[R]

Public Class Methods

new(severity) click to toggle source
# File lib/xcactivitylog/objects.rb, line 57
def initialize(severity)
  @severity = severity
  freeze
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/xcactivitylog/objects.rb, line 84
def <=>(other)
  severity <=> other.severity
end
to_s() click to toggle source
# File lib/xcactivitylog/objects.rb, line 67
def to_s
  case severity
  when 0
    'Success'
  when 1
    'Warning'
  when 2
    'Error'
  when 3
    'Test Failure'
  else
    "Unknown (#{severity})"
  end
end