Method: Arwen#initialize
- Defined in:
- lib/arwen.rb
#initialize(url, opts = {}) ⇒ Arwen
Create a new Arwen instance
22 23 24 25 26 27 |
# File 'lib/arwen.rb', line 22 def initialize(url, opts = {}) @url = url max_concurrency = opts.delete(:max_concurrency) { 200 } @opts = { followlocation: true }.merge(opts) @hydra = Typhoeus::Hydra.new(max_concurrency: max_concurrency) end |