Class: Foursquare::Settings

Inherits:
Node
  • Object
show all
Defined in:
lib/foursquare_settings.rb

Instance Method Summary collapse

Methods inherited from Node

#initialize, #perform_graph_request

Constructor Details

This class inherits a constructor from Foursquare::Node

Instance Method Details

#allObject

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