lib/hwacha/config.rb in hwacha-0.2.0 vs lib/hwacha/config.rb in hwacha-0.3.0

- old
+ new

@@ -1,6 +1,17 @@ require 'ostruct' class Hwacha class Config < OpenStruct + def options + options = {} + options.merge(concurrency_option) + end + + private + + def concurrency_option + return {} if max_concurrent_requests.nil? + { :max_concurrency => max_concurrent_requests } + end end end