Class: Foursquare::Merchant::Special
- Defined in:
- lib/foursquare/special.rb
Constant Summary
Constants included from Requests
Requests::API, Requests::OAUTH
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
Methods inherited from Model
Methods included from Requests
Constructor Details
This class inherits a constructor from Foursquare::Merchant::Model
Instance Method Details
#configuration ⇒ Object
33 34 35 |
# File 'lib/foursquare/special.rb', line 33 def configuration self.class.new(self.get("/specials/#{id}/configuration", {})['special'], @consumer) end |
#retire ⇒ Object
29 30 31 |
# File 'lib/foursquare/special.rb', line 29 def retire self.post("/specials/#{id}/retire", {}) end |