class PactBroker::UI::ViewDomain::IndexItemProviderBranchHead

Attributes

branch_head[R]
pacticipant_name[R]

Public Class Methods

new(branch_head, pacticipant_name) click to toggle source
# File lib/pact_broker/ui/view_models/index_item_provider_branch_head.rb, line 12
def initialize branch_head, pacticipant_name
  @branch_head = branch_head
  @pacticipant_name = pacticipant_name
end

Public Instance Methods

branch_name() click to toggle source
# File lib/pact_broker/ui/view_models/index_item_provider_branch_head.rb, line 17
def branch_name
  branch_head.branch_name
end
latest?() click to toggle source
# File lib/pact_broker/ui/view_models/index_item_provider_branch_head.rb, line 29
def latest?
  true
end
tooltip() click to toggle source
# File lib/pact_broker/ui/view_models/index_item_provider_branch_head.rb, line 21
def tooltip
  if branch_head.branch_version.auto_created
    "The latest verification is from branch \"#{branch_name}\". This branch was automatically inferred from the first tag because the Pact Broker configuration setting `use_first_tag_as_branch` was true."
  else
    "The latest verification is from branch \"#{branch_name}\"."
  end
end