Sha256: 7a8e644c598beaf9aa9761ed030263c274a8748cca216bd10a0f39940f980bcb
Contents?: true
Size: 658 Bytes
Versions: 3
Compression:
Stored size: 658 Bytes
Contents
require "erb" module PactBroker module UI module Helpers module URLHelper extend self def dashboard_url consumer_name, provider_name, base_url = "" "#{base_url}/dashboard/provider/#{provider_name}/consumer/#{consumer_name}" end def group_url pacticipant_name, base_url = "" "#{base_url}/pacticipants/#{ERB::Util.url_encode(pacticipant_name)}" end def matrix_url consumer_name, provider_name, base_url = "" "#{base_url}/matrix/provider/#{ERB::Util.url_encode(provider_name)}/consumer/#{ERB::Util.url_encode(consumer_name)}" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pact_broker-2.86.0 | lib/pact_broker/ui/helpers/url_helper.rb |
pact_broker-2.85.1 | lib/pact_broker/ui/helpers/url_helper.rb |
pact_broker-2.85.0 | lib/pact_broker/ui/helpers/url_helper.rb |