class Roqua::Healthy::A19::ResponseParser
Attributes
response[R]
Public Class Methods
new(response)
click to toggle source
# File lib/roqua/healthy/a19/response_parser.rb, line 10 def initialize(response) @response = response end
Public Instance Methods
fetch(root)
click to toggle source
# File lib/roqua/healthy/a19/response_parser.rb, line 14 def fetch(root) parsed_body[root] || {} end
Private Instance Methods
parsed_body()
click to toggle source
# File lib/roqua/healthy/a19/response_parser.rb, line 20 def parsed_body # from_xml will throw 'IOError: not modifiable string' without using dup in ActiveSupport 4.* @parsed_body ||= Hash.from_xml(response.body.dup) rescue REXML::ParseException => e raise IllegalMirthResponse, e.message end