Skip to content

Instantly share code, notes, and snippets.

@mikeric
Created March 25, 2010 17:50
Show Gist options
  • Save mikeric/343889 to your computer and use it in GitHub Desktop.
Save mikeric/343889 to your computer and use it in GitHub Desktop.
A simple Riak REST client
class Riak
include HTTParty
format :json
def self.config(host, port, prefix='riak')
base_uri "#{host}:#{port}/#{prefix}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment