class PactBroker::Pacts::HeadPact

Attributes

consumer_version_number[R]
tag[R]

Public Class Methods

new(pact, consumer_version_number, tag) click to toggle source
Calls superclass method
# 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

Public Instance Methods

overall_latest?() click to toggle source

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.

# File lib/pact_broker/pacts/head_pact.rb, line 21
def overall_latest?
  tag.nil?
end
pact() click to toggle source
# File lib/pact_broker/pacts/head_pact.rb, line 25
def pact
  __getobj__()
end