Class: Danger::Violation

Inherits:
Object
  • Object
show all
Defined in:
lib/danger/danger_core/violation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, sticky)
  self.message = message
  self.sticky = sticky
end

Instance Attribute Details

#messageObject

Returns the value of attribute message


3
4
5
# File 'lib/danger/danger_core/violation.rb', line 3

def message
  @message
end

#stickyObject

Returns the value of attribute sticky


3
4
5
# File 'lib/danger/danger_core/violation.rb', line 3

def sticky
  @sticky
end