class Chronicle::ETL::Extractor
Public Class Methods
new(options = {})
click to toggle source
Public Instance Methods
extract()
click to toggle source
results_count()
click to toggle source
An optional method to calculate how many records there are to extract. Used primarily for building the progress bar
# File lib/chronicle/etl/extractors/extractor.rb, line 25 def results_count; end
Private Instance Methods
handle_continuation()
click to toggle source
# File lib/chronicle/etl/extractors/extractor.rb, line 29 def handle_continuation return unless @options[:continuation] @options[:load_since] = @options[:continuation].highest_timestamp if @options[:continuation].highest_timestamp @options[:load_after_id] = @options[:continuation].last_id if @options[:continuation].last_id end