Module: Paradin::Configuration::ClassMethods
- Defined in:
- lib/paradin/configuration.rb
Instance Method Summary collapse
Instance Method Details
#max_threads(count = nil) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/paradin/configuration.rb', line 19 def max_threads(count = nil) if count @max_threads = count else @max_threads || DEFAULT_MAX_THREADS end end |
#timeout(seconds = nil) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/paradin/configuration.rb', line 11 def timeout(seconds = nil) if seconds @timeout = seconds else @timeout end end |