Sha256: 503be04c94e2017a2da269b3b865acc1e367cc7578ce3382ed9c38b91aba41b5
Contents?: true
Size: 996 Bytes
Versions: 3
Compression:
Stored size: 996 Bytes
Contents
module RSqoot module Deal # Retrieve a list of deals based on the following parameters # # @param [String] query (Search deals by title, description, fine print, merchant name, provider, and category.) # @param [String] location (Limit results to a particular area. We'll resolve whatever you pass us (including an IP address) to coordinates and search near there.) # @param [Integer] radius (Measured in miles. Defaults to 10.) # @param [Integer] page (Which page of result to return. Default to 1.) # @param [Integer] per_page (Number of results to return at once. Defaults to 10.) def deals(options={}) get('deals', options) end # Retrieve a deal by id # def deal(id, options={}) get("deals/#{id}", options) end def deal_click(id, options={}) get("deals/#{id}/click", options, parse = false) end def deal_impression(id, options={}) get("deals/#{id}/image", options, parse = false) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
rsqoot-0.2.2 | lib/rsqoot/deal.rb |
rsqoot-0.1.1 | lib/rsqoot/deal.rb |
rqoot-0.1.0 | lib/rsqoot/deal.rb |