class PactBroker::Pacts::HeadPact
Attributes
Public Class Methods
Source
# File lib/pact_broker/pacts/head_pact.rb, line 11 def initialize(pact, consumer_version_number, tag) super(pact) @consumer_version_number = consumer_version_number @tag = tag end
Calls superclass method
Public Instance Methods
Source
# File lib/pact_broker/pacts/head_pact.rb, line 21 def overall_latest? tag.nil? end
The underlying pact publication may well be the overall latest as well, but this row does not know that, as there will be a row with a nil tag if it is the overall latest as well as a row with the tag set, as the data is denormalised in the LatestTaggedPactPublications table.