lib/gds_api/json_client.rb
def with_timeout(method_params)
      method_params.merge(
        timeout: options[:timeout] || DEFAULT_TIMEOUT_IN_SECONDS,
        open_timeout: options[:timeout] || DEFAULT_TIMEOUT_IN_SECONDS,
      )
    end
def with_timeout(method_params)
      method_params.merge(
        timeout: options[:timeout] || DEFAULT_TIMEOUT_IN_SECONDS,
        open_timeout: options[:timeout] || DEFAULT_TIMEOUT_IN_SECONDS,
      )
    end
def with_timeout ( method_params ) method_params . merge ( timeout : options [ :timeout ] || DEFAULT_TIMEOUT_IN_SECONDS , open_timeout : options [ :timeout ] || DEFAULT_TIMEOUT_IN_SECONDS , ) end
Take a hash of parameters for Request#execute; return a hash of
 parameters with timeouts included
Take a hash of parameters for Request#execute ; return a hash of parameters with timeouts included