Sha256: c9d661bfedfa5171cb75430a9b4bb05030411466ba7be02d2903828708277d9a
Contents?: true
Size: 313 Bytes
Versions: 8
Compression:
Stored size: 313 Bytes
Contents
module HorizonClient module Response class ResourceError < StandardError end class ParseXml < Faraday::Response::Middleware def parse(body) resource = Resource.new(body) raise ResourceError.new(resource.error) if resource.error resource end end end end
Version data entries
8 entries across 8 versions & 1 rubygems