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.
-
#triggers ⇒ Object
readonly
Returns the value of attribute triggers.
Instance Method Summary collapse
-
#initialize(id:, triggers:, message:, justifications:) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(id:, triggers:, message:, justifications:) ⇒ Rule
Returns a new instance of Rule.
8 9 10 11 12 13 |
# File 'lib/goodcheck/rule.rb', line 8 def initialize(id:, triggers:, message:, justifications:) @id = id @triggers = triggers @message = @justifications = justifications 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 |
#triggers ⇒ Object (readonly)
Returns the value of attribute triggers.
4 5 6 |
# File 'lib/goodcheck/rule.rb', line 4 def triggers @triggers end |