Class: Goodcheck::Rule

Inherits:
Object
  • Object
show all
Defined in:
lib/goodcheck/rule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = 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
  @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