added ruby sample client and fixed parameter handling for null params