Class: PactBroker::Matrix::SpecifiedVersionDoesNotExist

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

Overview

The specified pacticipant version does not exist

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ErrorReason

#type

Methods inherited from Reason

#type

Constructor Details

#initialize(selector) ⇒ SpecifiedVersionDoesNotExist

Returns a new instance of SpecifiedVersionDoesNotExist.



89
90
91
# File 'lib/pact_broker/matrix/reason.rb', line 89

def initialize(selector)
  @selector = selector
end

Instance Attribute Details

#selectorObject (readonly)

Returns the value of attribute selector.



87
88
89
# File 'lib/pact_broker/matrix/reason.rb', line 87

def selector
  @selector
end

Instance Method Details

#==(other) ⇒ Object



93
94
95
# File 'lib/pact_broker/matrix/reason.rb', line 93

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

#selectorsObject



97
98
99
# File 'lib/pact_broker/matrix/reason.rb', line 97

def selectors
  [selector]
end

#to_sObject



101
102
103
# File 'lib/pact_broker/matrix/reason.rb', line 101

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