# File lib/aws/core/rest_response_parser.rb, line 22 def initialize operation, options @http = operation[:http] @parser = case options[:format] when :xml then XML::Parser.new(operation[:outputs]) when :json then Core::JSONParser.new(operation[:outputs]) else raise "unhandled format: #{options[:format].inspect}" end end