Class: PactBroker::Pacts::ResolvedSelector
- Defined in:
- lib/pact_broker/pacts/selector.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
- #consumer_version ⇒ Object
-
#initialize(options = {}, consumer_version) ⇒ ResolvedSelector
constructor
A new instance of ResolvedSelector.
Methods inherited from Selector
#<=>, all_for_tag, #all_for_tag?, all_for_tag_and_consumer, #all_for_tag_and_consumer?, #branch, #branch=, #consumer, #consumer=, #fallback_branch, #fallback_branch=, #fallback_branch?, #fallback_tag, #fallback_tag=, #fallback_tag?, from_hash, #latest, #latest=, latest_for_branch, #latest_for_branch?, latest_for_branch_and_consumer, latest_for_branch_with_fallback, latest_for_consumer, latest_for_tag, #latest_for_tag?, latest_for_tag_and_consumer, latest_for_tag_with_fallback, overall_latest, #overall_latest?, #resolve, #resolve_for_fallback, #tag, #tag=
Constructor Details
#initialize(options = {}, consumer_version) ⇒ ResolvedSelector
Returns a new instance of ResolvedSelector.
192 193 194 |
# File 'lib/pact_broker/pacts/selector.rb', line 192 def initialize( = {}, consumer_version) super(.merge(consumer_version: consumer_version)) end |
Instance Method Details
#==(other) ⇒ Object
200 201 202 |
# File 'lib/pact_broker/pacts/selector.rb', line 200 def == other super && consumer_version == other.consumer_version end |
#consumer_version ⇒ Object
196 197 198 |
# File 'lib/pact_broker/pacts/selector.rb', line 196 def consumer_version self[:consumer_version] end |