Sha256: 298f4744bfef54382aa61ed2021999d9e72755d7ebd85c58eb9493e264927ec2
Contents?: true
Size: 436 Bytes
Versions: 4
Compression:
Stored size: 436 Bytes
Contents
#encoding: utf-8 require 'multi_json' module HH # Define HTTP methods module Request # Perform an HTTP GET request def get(path, params={}) request(path, params) end private def request(path, params) # :nodoc: response = connection.get do |request| request.url(path, params) end MultiJson.load(response.body, symbolize_keys: true) end end #Request end #HH
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hh-0.0.7 | lib/hh/request.rb |
hh-0.0.6 | lib/hh/request.rb |
hh-0.0.5 | lib/hh/request.rb |
hh-0.0.4 | lib/hh/request.rb |