lib/goodcheck/rule.rb in goodcheck-2.7.0 vs lib/goodcheck/rule.rb in goodcheck-3.0.0
- old
+ new
@@ -2,14 +2,16 @@
class Rule
attr_reader :id
attr_reader :triggers
attr_reader :message
attr_reader :justifications
+ attr_reader :severity
- def initialize(id:, triggers:, message:, justifications:)
+ def initialize(id:, triggers:, message:, justifications:, severity: nil)
@id = id
@triggers = triggers
@message = message
@justifications = justifications
+ @severity = severity
end
end
end