Sha256: 030bdfd1d64e105c97cf2e6c2a7546cbb32daf762f7a5964fced5d4a51498e1a
Contents?: true
Size: 529 Bytes
Versions: 14
Compression:
Stored size: 529 Bytes
Contents
require 'active_support/core_ext/hash/conversions' module Roqua module Healthy module A19 class ResponseParser attr_reader :response def initialize(response) @response = response end def fetch(root) parsed_body[root] || {} end private def parsed_body @parsed_body ||= Hash.from_xml(response.body) rescue REXML::ParseException => e raise IllegalMirthResponse, e.message end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems