module Skittles::Client::Special

Define methods related to specials. @see developer.foursquare.com/docs/specials/specials.html

Public Instance Methods

flag_special(special_id, venue_id, problem, options = {}) click to toggle source

Allows users to indicate a special is improper in some way.

@params special_id [String] The id of the special being flagged. @param venue_id [String] The id of the venue running the special. @param problem [String] One of not_redeemable, not_valuable, other. @param options [Hash] A customizable set of options. @option options [String] text Additional text about why the user has flagged this special. @require_acting_user Yes @see developer.foursquare.com/docs/specials/flag.html

# File lib/skittles/client/special.rb, line 15
def flag_special(special_id, venue_id, problem, options = {})
  post("specials/#{special_id}/flag", { :venueId => venue_id, :problem => problem }.merge(options))
  nil
end
special(special_id, venue_id) click to toggle source

Gives details about a special, including text and unlock rules.

@param special_id [String] Id of special to retrieve. @return [Hashie::Mash] A complete special. @requires_acting_user No @see developer.foursquare.com/docs/specials/specials.html

# File lib/skittles/client/special.rb, line 26
def special(special_id, venue_id)
  get("specials/#{special_id}", :venueId => venue_id).special
end