Class: Foursquare::Settings
Instance Method Summary collapse
-
#all ⇒ Object
General.
-
#set(setting_id, params = {}) ⇒ Object
Actions.
Methods inherited from Node
#initialize, #perform_graph_request
Constructor Details
This class inherits a constructor from Foursquare::Node
Instance Method Details
#all ⇒ Object
General
4 5 6 |
# File 'lib/foursquare_settings.rb', line 4 def all perform_graph_request("settings/all", {}) end |
#set(setting_id, params = {}) ⇒ Object
Actions
9 10 11 12 13 14 |
# File 'lib/foursquare_settings.rb', line 9 def set(setting_id, params={}) # setting_id can be sendToTwitter, sendToFacebook, receivePings params = {:valueId => ""}.merge!(params) perform_graph_request("settings/#{setting_id}/set", params, "post") end |