module MilkCap::RTM

Constants

AUTH_ENDPOINT
REST_ENDPOINT
VERSION

Public Class Methods

get(endpoint, hash) click to toggle source
# File lib/milk_cap/rtm/base.rb, line 101
def self.get(endpoint, hash)
  query = hash.collect { |item| "#{item[0].to_s}=#{CGI.escape(item[1].to_s)}" }.join("&")
  url = endpoint + '?' + query
  Net::HTTP.get(URI.parse(url))
end