castle

make http requests like a king

a wrapper for ruby's net/http library inspired by dave thomas and john nunemaker

a quick example

class Google
  extend Castle
  base_uri "www.google.com"

  def self.search query
    get "/search", :q => query.to_s
  end
end

@request = Google.search "i love ruby" 
puts @request.response