Method: HorizonClient::Response::ParseXml#parse
- Defined in:
- lib/horizon_client/response/parse_xml.rb
#parse(body) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/horizon_client/response/parse_xml.rb', line 8 def parse(body) resource = Resource.new(body) raise ResourceError.new(resource.error) if resource.error resource end |