Class: Danger::Violation
- Inherits:
-
Object
- Object
- Danger::Violation
- Defined in:
- lib/danger/danger_core/violation.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#sticky ⇒ Object
Returns the value of attribute sticky.
Instance Method Summary collapse
-
#initialize(message, sticky) ⇒ Violation
constructor
A new instance of Violation.
Constructor Details
#initialize(message, sticky) ⇒ Violation
Returns a new instance of Violation.
5 6 7 8 |
# File 'lib/danger/danger_core/violation.rb', line 5 def initialize(, sticky) self. = self.sticky = sticky end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/danger/danger_core/violation.rb', line 3 def @message end |
#sticky ⇒ Object
Returns the value of attribute sticky.
3 4 5 |
# File 'lib/danger/danger_core/violation.rb', line 3 def sticky @sticky end |