lib/affirm/client.rb in affirm-ruby-1.1.2 vs lib/affirm/client.rb in affirm-ruby-1.1.3

- old
+ new

@@ -4,11 +4,11 @@ attr_reader :url_prefix private :url_prefix class << self - def request(method, path, **data) + def request(method, path, data={}) new.public_send(method, path, data) end end def initialize @@ -19,14 +19,14 @@ conn.response :json, content_type: /\bjson$/ conn.adapter Faraday.default_adapter end end - def get(path, **data) + def get(path, data={}) connection.get(normalized_path(path), data) end - def post(path, **data) + def post(path, data={}) connection.post(normalized_path(path), data) end private