arangamani/jenkins_api_client — pull request #62 by drnic (2013-04-16 17:55:22+00:00)
Title: job.get_console_output - undefined method `body' for #<String:0x007f898a1dae28>

`Job#get_console_output` assumes that `@client.api_get_request` returns an object with `#body` and `#header` methods. Currently `@client.api_get_request` returns only a string; because it finishes with `handle_exception` rather than return the raw `response` object.

Perhaps `api_get_request` needs an option to return the raw response object rather than automatically convert it to a string or exception via `handle_exception`?