Module: Sqoot::Offer

Included in:
Client
Defined in:
lib/sqoot/offer.rb

Instance Method Summary collapse

Instance Method Details

#offers(options = {}) ⇒ Hashie::Mash

Retrieve a list of offers based on the following parameters

Parameters:

  • location (String)

    (What geography do you want deals from? It can be anything: a city, zip code, address, intersection or even a latitude/longitude)

  • categories (String)

    (You can specify just one (e.g., restaurants), or whole bunch by separating their slugs with commas (e.g., “restaurants,jewish”)

  • per_page (Integer)

    Number of results to be displayed

Returns:

  • (Hashie::Mash)

    offers list



11
12
13
# File 'lib/sqoot/offer.rb', line 11

def offers(options={})
  get('/v1/offers', options)
end