Class: Chronicle::Safari::BrowseExtractor
- Inherits:
-
ETL::Extractor
- Object
- ETL::Extractor
- Chronicle::Safari::BrowseExtractor
- Defined in:
- lib/chronicle/safari/browse_extractor.rb
Instance Method Summary collapse
Instance Method Details
#extract ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/chronicle/safari/browse_extractor.rb', line 25 def extract @history.each do |entry| entry.transform_keys!(&:to_sym) = {} [:my_icloud_account] = @icloud_account yield build_extraction(data: entry, meta:) end end |
#prepare ⇒ Object
19 20 21 22 23 |
# File 'lib/chronicle/safari/browse_extractor.rb', line 19 def prepare @db = SQLite3::Database.new(@config.input, results_as_hash: true) @icloud_account = load_icloud_account @history = load_history end |
#results_count ⇒ Object
35 36 37 |
# File 'lib/chronicle/safari/browse_extractor.rb', line 35 def results_count @history.count end |