lib/paddle/client.rb in paddle-2.2.0 vs lib/paddle/client.rb in paddle-2.2.1

- old
+ new

@@ -1,22 +1,19 @@ module Paddle class Client - class << self - def connection @connection ||= Faraday.new(Paddle.config.url) do |conn| conn.request :authorization, :Bearer, Paddle.config.api_key conn.headers = { "User-Agent" => "paddle/v#{VERSION} (github.com/deanpcmad/paddle)", "Paddle-Version" => Paddle.config.version.to_s } conn.request :json - - conn.response :json, content_type: "application/json" + conn.response :json end end def get_request(url, params: {}, headers: {}) @@ -63,10 +60,8 @@ raise Error, "Error #{response.body["error"]["code"]} - #{response.body["errors"]["message"]}" end response end - end - end end