class Patron::Request
def connect_timeout=(new_timeout)
-
new_timeout
(Integer
) -- the number of seconds to wait before raising a timeout error
def connect_timeout=(new_timeout) if new_timeout && new_timeout.to_i < 1 raise ArgumentError, "Timeout must be a positive integer greater than 0" end @connect_timeout = new_timeout.to_i end