Based on API Specification, here is an example on how to interact with the service in Ruby:

#!/usr/bin/ruby

require 'rest-client'
require 'yajl'

def object_parsed(obj)
    contents = obj["Content"]["content"];
    contents.each do |element|
        puts element
    end
end

begin
    cmdurl = 'http://localhost:9090/cmd'
    resp = RestClient.post(cmdurl, { 'Stmt' => 'select * from sales limit 1000'}.to_json)

    json = StringIO.new(resp)
    parser = Yajl::Parser.new
    parser.on_parse_complete = method(:object_parsed)
    parser.parse(json)         
end