Class: InterMine::Results::JsonReader
- Inherits:
-
ResultsReader
- Object
- ResultsReader
- InterMine::Results::JsonReader
- Includes:
- Enumerable
- Defined in:
- lib/intermine/results.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from ResultsReader
#each_result, #each_row, #each_summary, #get_size, #initialize, #read_result_set
Constructor Details
This class inherits a constructor from InterMine::Results::ResultsReader
Instance Method Details
#each ⇒ Object
397 398 399 400 401 402 403 |
# File 'lib/intermine/results.rb', line 397 def each processor = lambda { |line| x = line.chomp.chomp(",") x.empty? ? nil : JSON.parse(x) } read_result_set(params("json"), processor) { |x| yield x } end |