Sha256: 0e9797fa14af93fcb6f2647112d6040d82f55e0ff39953e880c27a67a68628d3

Contents?: true

Size: 431 Bytes

Versions: 60

Compression:

Stored size: 431 Bytes

Contents

require 'erb'

module PactBroker
  module UI
    module Helpers
      module URLHelper

        extend self

        def group_url pacticipant_name
          "/groups/#{ERB::Util.url_encode(pacticipant_name)}"
        end

        def matrix_url consumer_name, provider_name
          "/matrix/provider/#{ERB::Util.url_encode(provider_name)}/consumer/#{ERB::Util.url_encode(consumer_name)}"
        end
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
pact_broker-2.54.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.53.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.52.2 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.52.1 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.52.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.51.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.50.1 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.50.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.49.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.48.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.47.1 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.47.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.46.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.45.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.44.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.43.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.42.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.41.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.40.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.39.0 lib/pact_broker/ui/helpers/url_helper.rb