From 7f30228c608bd4d01c0b03690b1668b8f1054884 Mon Sep 17 00:00:00 2001 From: AnkurVyas-BTC Date: Tue, 11 Oct 2016 14:54:58 +0530 Subject: [PATCH] Issue with rate error solved - https://github.com/jazminschroeder/fedex/issues/123 --- lib/fedex/request/rate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fedex/request/rate.rb b/lib/fedex/request/rate.rb index 20aaa0d8..0f53fd97 100644 --- a/lib/fedex/request/rate.rb +++ b/lib/fedex/request/rate.rb @@ -7,7 +7,7 @@ class Rate < Base def process_request api_response = self.class.post(api_url, :body => build_xml) puts api_response if @debug - response = parse_response(api_response) + response = parse_response(api_response.parsed_response) if success?(response) rate_reply_details = response[:rate_reply][:rate_reply_details] || [] rate_reply_details = [rate_reply_details] if rate_reply_details.is_a?(Hash)