Class: Abroad::Extractors::Json::JsonExtractor

Inherits:
Extractor
  • Object
show all
Defined in:
lib/abroad/extractors/json/json_extractor.rb

Direct Known Subclasses

KeyValueExtractor

Instance Attribute Summary

Attributes inherited from Extractor

#stream

Instance Method Summary collapse

Methods inherited from Extractor

#close, from_stream, from_string, #initialize, open

Constructor Details

This class inherits a constructor from Abroad::Extractors::Extractor

Instance Method Details

#extract_each(options = {}, &block) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/abroad/extractors/json/json_extractor.rb', line 6

def extract_each(options = {}, &block)
  if block_given?
    each_entry(&block)
  else
    to_enum(__method__, options)
  end
end