Class: Goodcheck::Rule
- Inherits:
-
Object
- Object
- Goodcheck::Rule
- Defined in:
- lib/goodcheck/rule.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#justifications ⇒ Object
readonly
Returns the value of attribute justifications.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#severity ⇒ Object
readonly
Returns the value of attribute severity.
-
#triggers ⇒ Object
readonly
Returns the value of attribute triggers.
Instance Method Summary collapse
-
#initialize(id:, triggers:, message:, justifications:, severity: nil) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(id:, triggers:, message:, justifications:, severity: nil) ⇒ Rule
Returns a new instance of Rule.
9 10 11 12 13 14 15 |
# File 'lib/goodcheck/rule.rb', line 9 def initialize(id:, triggers:, message:, justifications:, severity: nil) @id = id @triggers = triggers @message = @justifications = justifications @severity = severity end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/goodcheck/rule.rb', line 3 def id @id end |
#justifications ⇒ Object (readonly)
Returns the value of attribute justifications.
6 7 8 |
# File 'lib/goodcheck/rule.rb', line 6 def justifications @justifications end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/goodcheck/rule.rb', line 5 def @message end |
#severity ⇒ Object (readonly)
Returns the value of attribute severity.
7 8 9 |
# File 'lib/goodcheck/rule.rb', line 7 def severity @severity end |
#triggers ⇒ Object (readonly)
Returns the value of attribute triggers.
4 5 6 |
# File 'lib/goodcheck/rule.rb', line 4 def triggers @triggers end |