Method: InterMine::Results::ResultsReader#each_summary
- Defined in:
- lib/intermine/results.rb
#each_summary(summary_path) ⇒ Object
288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/intermine/results.rb', line 288 def each_summary(summary_path) extra = {"summaryPath" => @query.add_prefix(summary_path)} p = params("jsonrows").merge(extra) processor = lambda {|line| x = line.chomp.chomp(",") x.empty? ? nil : JSON.parse(x) } read_result_set(p, processor) {|x| yield x } end |