# File lib/google_ajax.rb, line 30
  def self.get(api, method, query, args = nil)
    raise "You must assign a value to GoogleAjax.referer" unless @@referer
    url  = "#{API_BASE}#{api}/"
    url += "#{method}?"
    url += "&q=#{CGI::escape(query)}"
    url += "&key=" if @@api_key
    url += "&" + args.collect {|key, value| "#{key}=#{value}"}.join('&') if args && !args.empty?
    data = open(url, "Referer" => @@referer).read
    Parser.parse(api, method, data)
  end