Class: Clef::Core::ValidationIssue

Inherits:
Struct
  • Object
show all
Defined in:
lib/clef/core/validation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



5
6
7
# File 'lib/clef/core/validation.rb', line 5

def message
  @message
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



5
6
7
# File 'lib/clef/core/validation.rb', line 5

def path
  @path
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



5
6
7
# File 'lib/clef/core/validation.rb', line 5

def severity
  @severity
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/clef/core/validation.rb', line 10

def error?
  severity == :error
end

#warning?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/clef/core/validation.rb', line 6

def warning?
  severity == :warning
end