Class: PactBroker::Matrix::IgnoreSelectorDoesNotExist

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Warning

#type

Methods inherited from Reason

#type

Constructor Details

#initialize(selector) ⇒ IgnoreSelectorDoesNotExist

Returns a new instance of IgnoreSelectorDoesNotExist.



119
120
121
# File 'lib/pact_broker/matrix/reason.rb', line 119

def initialize(selector)
  @selector = selector
end

Instance Attribute Details

#selectorObject (readonly)

Returns the value of attribute selector.



117
118
119
# File 'lib/pact_broker/matrix/reason.rb', line 117

def selector
  @selector
end

Instance Method Details

#==(other) ⇒ Object



123
124
125
# File 'lib/pact_broker/matrix/reason.rb', line 123

def == other
  super(other) && selector == other.selector
end

#selectorsObject



127
128
129
# File 'lib/pact_broker/matrix/reason.rb', line 127

def selectors
  [selector]
end

#to_sObject



131
132
133
# File 'lib/pact_broker/matrix/reason.rb', line 131

def to_s
  "#{self.class} selector=#{selector}"
end