class Groonga::Client::CommandLine::GroongaClient::Runner
Private Instance Methods
process_response(response, command)
click to toggle source
# File lib/groonga/client/command-line/groonga-client.rb, line 167 def process_response(response, command) case command.output_type when :json output = {"header" => response.header} if response.trace_logs output["trace_logs"] = response.trace_logs end output["body"] = response.body puts(JSON.pretty_generate(output)) when :xml puts(response.raw) else puts(response.body) end end