class PactBroker::UI::ViewDomain::IndexItemBranchHead
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_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_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_branch_head.rb, line 29 def latest? true end
tooltip()
click to toggle source
# File lib/pact_broker/ui/view_models/index_item_branch_head.rb, line 21 def tooltip if branch_head.branch_version.auto_created "This is the latest pact 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 "This is the latest pact from branch \"#{branch_name}\"." end end