allows to pass FaraDay options furthur to FaraDay configuration block upon client initialization
This commit is contained in:
1 parent
bfa5225766
commit
2f88bc5487
2 files changed
+30
-20
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user