lib/foursquare2/users.rb
def user_mayorships(user_id, options={})
      response = connection.get do |req|
        req.url "users/#{user_id}/mayorships", options
      end
      return_error_or_body(response, response.body.response.mayorships)
    end
def user_mayorships(user_id, options={})
      response = connection.get do |req|
        req.url "users/#{user_id}/mayorships", options
      end
      return_error_or_body(response, response.body.response.mayorships)
    end
def user_mayorships ( user_id , options = { } ) response = connection . get do | req | req . url "users/#{user_id}/mayorships" , options end return_error_or_body ( response , response . body . response . mayorships ) end
Get the mayorships for a given user.

 @param [String] user_id - The user to retrieve friends for.
Get the mayorships for a given user .