Sha256: 9e8e0a15d7e00184ddb16201ab4cc5452922bd8315982cd0d0a8c59c543f26a5
Contents?: true
Size: 236 Bytes
Versions: 8
Compression:
Stored size: 236 Bytes
Contents
require 'open-uri' require 'cgi' module Bremen module Request def get url open(url).read end def build_query options = {} options.to_a.map{|o| "#{o[0]}=#{CGI.escape(o[1].to_s)}" }.join('&') end end end
Version data entries
8 entries across 8 versions & 1 rubygems