Class: Slash::TyphoeusQueue
- Extended by:
- Forwardable
- Defined in:
- lib/slash/typhoeus.rb
Instance Attribute Summary collapse
-
#hydra ⇒ Object
Returns the value of attribute hydra.
Instance Method Summary collapse
-
#initialize(hydra_or_options = nil) ⇒ TyphoeusQueue
constructor
A new instance of TyphoeusQueue.
Constructor Details
#initialize(hydra_or_options = nil) ⇒ TyphoeusQueue
Returns a new instance of TyphoeusQueue.
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/slash/typhoeus.rb', line 11 def initialize( = nil) case when nil @hydra = Typhoeus::Hydra.new @hydra.disable_memoization when Hash @hydra = Typhoeus::Hydra.new() @hydra.disable_memoization else @hydra = end end |
Instance Attribute Details
#hydra ⇒ Object
Returns the value of attribute hydra.
24 25 26 |
# File 'lib/slash/typhoeus.rb', line 24 def hydra @hydra end |