lib/nubank_sdk/client.rb in nubank_sdk-0.6.1 vs lib/nubank_sdk/client.rb in nubank_sdk-0.7.0

- old
+ new

@@ -2,10 +2,13 @@ require 'faraday' require 'json' module NubankSdk + # + # Wrapper for Faraday::Connection + # module Client # # Parse the response body symbolizing keys # # @param [Faraday::Response] response @@ -13,10 +16,13 @@ # @return [Hash] def self.get_body(response) JSON.parse(response.body, symbolize_names: true) end + # + # create a new connection with the given url in Faraday + # class HTTP # # create a new connection with the given url in Faraday # # @param [String] base_url @@ -51,9 +57,12 @@ def get(path) @connection.get(path) end end + # + # Create a new instance of Faraday::Connection with client certificate + # class HTTPS attr_accessor :headers # # Create a new instance of Faraday::Connection with client certificate