module DPLibrary::Request
Public Instance Methods
get(path, options={})
click to toggle source
# File lib/DPLibrary/request.rb, line 5 def get(path, options={}) request(:get, path, options) end
Private Instance Methods
request(request_type, path, options)
click to toggle source
# File lib/DPLibrary/request.rb, line 10 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