def deals(query={})
      division = query.delete(:division)
      query.merge! :client_id => @api_key
      path = division ? "/#{division}" : ""
      path += "/deals.json"
      self.class.get(path, :query => query).deals
    end
def deals(query={})
      division = query.delete(:division)
      query.merge! :client_id => @api_key
      path = division ? "/#{division}" : ""
      path += "/deals.json"
      self.class.get(path, :query => query).deals
    end
Returns a list of deals.

   The API returns an ordered list of deals currently running for a given Division.

   Priority is based on position within the response (top deals are higher in priority).



 @see http://sites.google.com/site/grouponapi/divisions-api Groupon API docs



 @option options [String] :lat (Latitudinal coordinates based on IP of API request) Latitude of geolocation to find deals

 @option options [String] :lng (Longtitudinal coordinates based on IP of API request) Longitude of geolocation to find deals

 @return [Array<Hashie::Mash>] an array of deals