Class: AddressFinder::Bulk

Inherits:
Object
  • Object
show all
Defined in:
lib/addressfinder/bulk.rb

Defined Under Namespace

Classes: ClientProxy

Instance Method Summary collapse

Constructor Details

#initialize(http:, &block) ⇒ Bulk

Returns a new instance of Bulk.



3
4
5
6
# File 'lib/addressfinder/bulk.rb', line 3

def initialize(http:, &block)
  @block = block
  @http_config = http
end

Instance Method Details

#performObject



8
9
10
11
12
# File 'lib/addressfinder/bulk.rb', line 8

def perform
  http_config.start do |http|
    block.call ClientProxy.new(http: http)
  end
end