Module: Typhoeus::Hydra::Addable Private

Included in:
Typhoeus::Hydra
Defined in:
lib/typhoeus/hydra/addable.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

This module handles the request adding on hydra.

Since:

  • 0.5.0

Instance Method Summary collapse

Instance Method Details

#add(request) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Adds request to multi.

Examples:

Add request.

hydra.add(request)

Since:

  • 0.5.0


18
19
20
# File 'lib/typhoeus/hydra/addable.rb', line 18

def add(request)
  multi.add(EasyFactory.new(request, self).get)
end