Class: PactBroker::Pacts::ResolvedSelector

Inherits:
Selector
  • Object
show all
Defined in:
lib/pact_broker/pacts/selector.rb

Instance Method Summary collapse

Methods inherited from Selector

#<=>, all_for_tag, #all_for_tag?, all_for_tag_and_consumer, #all_for_tag_and_consumer?, #consumer, #consumer=, #fallback_tag, #fallback_tag=, #fallback_tag?, from_hash, #latest, #latest=, latest_for_consumer, latest_for_tag, #latest_for_tag?, latest_for_tag_and_consumer, latest_for_tag_with_fallback, overall_latest, #overall_latest?, #resolve, #tag, #tag=

Constructor Details

#initialize(options = {}, consumer_version) ⇒ ResolvedSelector

Returns a new instance of ResolvedSelector.



137
138
139
# File 'lib/pact_broker/pacts/selector.rb', line 137

def initialize(options = {}, consumer_version)
  super(options.merge(consumer_version: consumer_version))
end

Instance Method Details

#==(other) ⇒ Object



145
146
147
# File 'lib/pact_broker/pacts/selector.rb', line 145

def == other
  super && consumer_version == other.consumer_version
end

#consumer_versionObject



141
142
143
# File 'lib/pact_broker/pacts/selector.rb', line 141

def consumer_version
  self[:consumer_version]
end