Module: PactBroker::UI::Helpers::URLHelper
Instance Method Summary collapse
- #group_url(pacticipant_name, base_url = '') ⇒ Object
- #matrix_url(consumer_name, provider_name, base_url = '') ⇒ Object
Instance Method Details
#group_url(pacticipant_name, base_url = '') ⇒ Object
10 11 12 |
# File 'lib/pact_broker/ui/helpers/url_helper.rb', line 10 def group_url pacticipant_name, base_url = '' "#{base_url}/groups/#{ERB::Util.url_encode(pacticipant_name)}" end |
#matrix_url(consumer_name, provider_name, base_url = '') ⇒ Object
14 15 16 |
# File 'lib/pact_broker/ui/helpers/url_helper.rb', line 14 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 |