Sha256: 2f7f8f9dae64b2156ab211b33fad95b3c81d03928c7ca1f522faa51b00dd82e8
Contents?: true
Size: 997 Bytes
Versions: 43
Compression:
Stored size: 997 Bytes
Contents
require "pact_broker/api/pact_broker_urls" require "pact_broker/ui/helpers/url_helper" require "pact_broker/date_helper" module PactBroker module UI module ViewDomain class MatrixBranch include PactBroker::Api::PactBrokerUrls def initialize branch_version, pacticipant_name @branch_version = branch_version @pacticipant_name = pacticipant_name end def name branch_version.branch_name end def tooltip if branch_version.latest? "This is the latest version of #{pacticipant_name} from branch \"#{branch_version.branch_name}\"." else "This version of #{pacticipant_name} is from branch \"#{branch_version.branch_name}\". A more recent version from this branch exists." end end def latest? branch_version.latest? end private attr_reader :branch_version, :pacticipant_name end end end end
Version data entries
43 entries across 43 versions & 1 rubygems