module RSqoot::Deal

Public Instance Methods

deal(id, options={}) click to toggle source

Retrieve a deal by id

# File lib/rsqoot/deal.rb, line 17
def deal(id, options={})
  get("deals/#{id}", options)
end
deal_click(id, options={}) click to toggle source
# File lib/rsqoot/deal.rb, line 21
def deal_click(id, options={})
  get("deals/#{id}/click", options, parse = false)
end
deal_impression(id, options={}) click to toggle source
# File lib/rsqoot/deal.rb, line 25
def deal_impression(id, options={})
  get("deals/#{id}/image", options, parse = false)
end
deals(options={}) click to toggle source

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.)

# File lib/rsqoot/deal.rb, line 11
def deals(options={})
  get('deals', options)
end