Sha256: 7e61a38a89c90b8f10ea30683c5462dc0a3b66774355931272a8027da065d472
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 Bytes
Contents
require 'ostruct' class Hwacha class Config < OpenStruct def hydra_options options = {} options.merge(concurrency_option) end def request_options options = {} options.merge(follow_redirects_option) end private def concurrency_option return {} if max_concurrent_requests.nil? { :max_concurrency => max_concurrent_requests } end def follow_redirects_option followlocation = false followlocation = !!ricochet unless ricochet.nil? followlocation = !!follow_redirects unless follow_redirects.nil? { :followlocation => followlocation } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hwacha-1.0.2 | lib/hwacha/config.rb |