travis-ci
231 of 231 new or added lines in 21 files covered. (100.0%)
1226 of 1279 relevant lines covered (95.86%)
25.28 hits per line
|
require_relative 'base'
|
3 all except jruby-9.1.13.0 ✔ |
|
require 'json'
|
3 all except jruby-9.1.13.0 ✔ |
|
require 'crack'
|
3 all except jruby-9.1.13.0 ✔ |
4 |
|
|
|
module TLAW |
3 all except jruby-9.1.13.0 ✔ |
|
module Processors |
3 all except jruby-9.1.13.0 ✔ |
|
class ResponseProcessor < Base |
3 all except jruby-9.1.13.0 ✔ |
|
def parse_response(response) |
3 all except jruby-9.1.13.0 ✔ |
|
if response.headers['Content-Type'] =~ /xml/ |
36 all except jruby-9.1.13.0 ✔ |
|
Crack::XML.parse(response.body) |
× |
11 |
else
|
|
|
JSON.parse(response.body)
|
36 all except jruby-9.1.13.0 ✔ |
13 |
end
|
|
14 |
end
|
|
15 |
end
|
|
16 |
end
|
|
17 |
end
|