Class: LogExtractor::Extract

Inherits:
Object
  • Object
show all
Defined in:
lib/log_extractor/extract.rb

Instance Method Summary collapse

Instance Method Details

#call(&block) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/log_extractor/extract.rb', line 7

def call(&block)
  @response = search.response
  while raw_hits.any?
    raw_hits.each { |raw_hit| parse_hit(raw_hit, &block) }
    @response = search.scroll
  end
end