Class: Foursquare::Merchant::Special

Inherits:
Model
  • Object
show all
Defined in:
lib/foursquare/special.rb

Constant Summary

Constants included from Requests

Requests::API, Requests::OAUTH

Instance Attribute Summary

Attributes inherited from Model

#consumer

Instance Method Summary collapse

Methods inherited from Model

#initialize

Methods included from Requests

#get, #post

Constructor Details

This class inherits a constructor from Foursquare::Merchant::Model

Instance Method Details

#configurationObject



33
34
35
# File 'lib/foursquare/special.rb', line 33

def configuration
  self.class.new(self.get("/specials/#{id}/configuration", {})['special'], @consumer)
end

#retireObject



29
30
31
# File 'lib/foursquare/special.rb', line 29

def retire
  self.post("/specials/#{id}/retire", {})
end