lib/onering/api.rb in onering-client-0.0.82 vs lib/onering/api.rb in onering-client-0.0.83
- old
+ new
@@ -87,10 +87,10 @@
raise "Invalid source IP address #{options.get('config.source')}"
end
end
# set API connectivity details
- Onering::API.base_uri Onering::Config.get(:url, DEFAULT_BASE)
+ Onering::API.base_uri(options.get('config.url', Onering::Config.get(:url, DEFAULT_BASE)))
# add default parameters
options.get('config.params',{}).each do |k,v|
_default_param(k,v)
end
\ No newline at end of file