Sha256: 446554edd367f5f4022e3f3ef714a3dfda4ebc80e15c95a145040450f59cb11d
Contents?: true
Size: 380 Bytes
Versions: 7
Compression:
Stored size: 380 Bytes
Contents
module DPLibrary module Request include DPLibrary::Connection def get(path, options={}) request(:get, path, options) end private def request(request_type, path, options) response = connection.send(request_type, path) do |request| options.each{ |k,v| request.params[k.to_s] = v } end response.body.to_json end end end
Version data entries
7 entries across 7 versions & 1 rubygems