Module: Foursquared::Specials
- Included in:
- Client
- Defined in:
- lib/foursquared/specials.rb
Overview
Specials module
Instance Method Summary collapse
-
#flag_special(special_id, options = {}) ⇒ Object
Flag a Special.
-
#special(special_id, options = {}) ⇒ Foursquared::Response::Special
Gives details about a special.
Instance Method Details
#flag_special(special_id, options = {}) ⇒ Object
Flag a Special
21 22 23 |
# File 'lib/foursquared/specials.rb', line 21 def flag_special special_id, ={} response = post("/specials/#{special_id}/flag", )["response"] end |
#special(special_id, options = {}) ⇒ Foursquared::Response::Special
Gives details about a special
10 11 12 13 |
# File 'lib/foursquared/specials.rb', line 10 def special special_id, ={} response = get("/specials/#{special_id}")["response"] @special = Foursquared::Response::Special.new(self, response["special"]) end |