Sha256: fcdade1abd99f35d33101b904e11d2105b703b17dcb3d09c6a5581e9d4705292

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

module Foursquare
  class Settings < Node
    #General
    def all
      perform_graph_request("settings/all", {})
    end

    #Actions
    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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foursquare-api-0.0.2 lib/settings.rb