Module: CloudParty::Helpers

Defined in:
lib/cloud_party/helpers.rb

Class Method Summary collapse

Class Method Details

.build_query(params) ⇒ Object



6
7
8
9
# File 'lib/cloud_party/helpers.rb', line 6

def self.build_query(params)
  uri = URI::HTTPS.build(host: 'example.com', query: URI.encode_www_form(params))
  return "?#{uri.query}"
end