Sha256: d4026264381c4b637a96346226b075358df138175fc3dc5a8bab48418585d055
Contents?: true
Size: 588 Bytes
Versions: 5
Compression:
Stored size: 588 Bytes
Contents
require 'yaml' require 'monkeyshines/runner_core/options' module Monkeyshines # # In general, you should # # But where an external library is alread providing cooked results or it's # otherwise most straightforward to directly emit model objects, you can use # a parsing runner # class ParsingRunner < Runner # # Fetch and store result # # def fetch_and_store req result = fetcher.get(req) # do the url fetch # results.each do |result| result.parse do |obj| dest.save(obj) end #end end end end
Version data entries
5 entries across 5 versions & 1 rubygems