Sha256: 1824b2b39346b83b5dda0e133997727f1261e0dcc8c688dc91d18f58b89cef6e
Contents?: true
Size: 963 Bytes
Versions: 1
Compression:
Stored size: 963 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 "A more recent version of #{pacticipant_name} from branch \"#{branch_version.branch_name}\" exists." end end def latest? branch_version.latest? end private attr_reader :branch_version, :pacticipant_name end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pact_broker-2.84.0 | lib/pact_broker/ui/view_models/matrix_branch.rb |