lib/moysklad/client.rb in moysklad-0.4.10 vs lib/moysklad/client.rb in moysklad-0.5
- old
+ new
@@ -7,11 +7,11 @@
require_relative 'client/errors'
class Moysklad::Client
URL ='https://api.moysklad.ru/api/remap/1.2/'
- def initialize login: nil, password: nil, logger: nil
- @client = Faraday.new URL do |conn|
+ def initialize login: nil, password: nil, logger: nil, proxy: nil
+ @client = Faraday.new URL, proxy: proxy do |conn|
unless logger.nil?
conn.response :detailed_logger, logger
conn.request :curl, logger, :info
end
conn.request :gzip