allows to pass FaraDay options furthur to FaraDay configuration block upon client initialization

This commit is contained in:
Janis Kesteris committed 2014-07-29 15:06:45 +02:00
1 parent bfa5225766
commit 2f88bc5487
2 files changed
+30 -20

No files matched your search

+5
View File
@@ -119,6 +119,11 @@ module Google
faraday.ssl.ca_file = ca_file
faraday.ssl.verify = true
faraday.adapter Faraday.default_adapter
if options[:faraday_option].is_a?(Hash)
options[:faraday_option].each_pair do |option, value|
faraday.options.send("#{option}=", value)
end
end
end
return self
end