Module: PactBroker::Client::UrlHelpers

Included in:
BaseClient
Defined in:
lib/pact_broker/client/base_client.rb

Instance Method Summary collapse

Instance Method Details

#encode_param(param) ⇒ Object



14
15
16
# File 'lib/pact_broker/client/base_client.rb', line 14

def encode_param param
  ERB::Util.url_encode param
end

#encode_query_param(param) ⇒ Object



18
19
20
# File 'lib/pact_broker/client/base_client.rb', line 18

def encode_query_param param
  CGI::escape param
end