class Patron::Request

def timeout=(new_timeout)

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