Method: HTTParty::ClassMethods#default_timeout
- Defined in:
- lib/httparty.rb
#default_timeout(value) ⇒ Object
Allows setting a default timeout for all HTTP calls Timeout is specified in seconds.
class Foo
include HTTParty
default_timeout 10
end
174 175 176 177 |
# File 'lib/httparty.rb', line 174 def default_timeout(value) validate_timeout_argument(__method__, value) [:timeout] = value end |