lib/braintree/http.rb in braintree-4.16.0 vs lib/braintree/http.rb in braintree-4.17.0
- old
+ new
@@ -5,23 +5,23 @@
def initialize(config)
@config = config
end
- def delete(_path, query_params = {})
- path = _path + _build_query_string(query_params)
+ def delete(path, query_params = {})
+ full_path = path + _build_query_string(query_params)
response = _http_do Net::HTTP::Delete, path
if response.code.to_i == 200 || response.code.to_i == 204
true
elsif response.code.to_i == 422
Xml.hash_from_xml(_body(response))
else
Util.raise_exception_for_status_code(response.code)
end
end
- def get(_path, query_params = {})
- path = _path + _build_query_string(query_params)
+ def get(path, query_params = {})
+ full_path = path + _build_query_string(query_params)
response = _http_do Net::HTTP::Get, path
if response.code.to_i == 200 || response.code.to_i == 422
Xml.hash_from_xml(_body(response))
else
Util.raise_exception_for_status_code(response.code)