Class: PactBroker::Matrix::IgnoredReason

Inherits:
Object
  • Object
show all
Defined in:
lib/pact_broker/matrix/reason.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root_reason) ⇒ IgnoredReason

todo equals



29
30
31
# File 'lib/pact_broker/matrix/reason.rb', line 29

def initialize(root_reason)
  @root_reason = root_reason
end

Instance Attribute Details

#root_reasonObject (readonly)

Returns the value of attribute root_reason.



25
26
27
# File 'lib/pact_broker/matrix/reason.rb', line 25

def root_reason
  @root_reason
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
# File 'lib/pact_broker/matrix/reason.rb', line 33

def == other
  other.is_a?(IgnoredReason) && other.root_reason == self.root_reason
end

#typeObject



37
38
39
# File 'lib/pact_broker/matrix/reason.rb', line 37

def type
  :info
end