Sha256: c1b9f01d62ad7196d94e193a8117da92ef0a73d108769ff851f4a6c2d0f0fa23
Contents?: true
Size: 220 Bytes
Versions: 2
Compression:
Stored size: 220 Bytes
Contents
module Pacto class URI def self.for(host, path, params = {}) Addressable::URI.heuristic_parse("#{host}#{path}").tap do |uri| uri.query_values = params unless params.empty? end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.3.1 | lib/pacto/uri.rb |
pacto-0.3.0 | lib/pacto/uri.rb |