diff --git a/lib/vero/api/base_api.rb b/lib/vero/api/base_api.rb index cc60cb9..f754446 100644 --- a/lib/vero/api/base_api.rb +++ b/lib/vero/api/base_api.rb @@ -31,8 +31,8 @@ def perform def options=(val) new_options = options_with_symbolized_keys(val) - if (extra_config = new_options.delete(:_config)) - @http_timeout = extra_config.fetch(:http_timeout, 60) + if (extra_config = new_options.delete(:_config)) && extra_config.is_a?(Hash) + @http_timeout = extra_config[:http_timeout] end @options = new_options