module Congress module Request def get(path, options = {}) request(:get, path, options) end private def request(method, path, options) response = connection.send(method) do |request| request.headers['X-APIKEY'] = key request.url(path, options) end response.body end end end