Sha256: c7db8f9da1ed9188118034402a6a44a08eeda1e99972ab86436a873e009bc7c2

Contents?: true

Size: 616 Bytes

Versions: 2

Compression:

Stored size: 616 Bytes

Contents

module Sqoot
  module Offer

    # Retrieve a list of offers based on the following parameters
    #
    # @param [String] location (What geography do you want deals from? It can be anything: a city, zip code, address, intersection or even a latitude/longitude)
    # @param [String] categories (You can specify just one (e.g., restaurants), or whole bunch by separating their slugs with commas (e.g., "restaurants,jewish")
    # @param [Integer] per_page Number of results to be displayed
    #
    # @return [Hashie::Mash] offers list
    def offers(options={})
      get('/v1/offers', options)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sqoot-1.0.0 lib/sqoot/offer.rb
sqoot-0.0.1 lib/sqoot/offer.rb