Class: Chronicle::Imessage::ImessageExtractor
- Inherits:
-
ETL::Extractor
- Object
- ETL::Extractor
- Chronicle::Imessage::ImessageExtractor
- Defined in:
- lib/chronicle/imessage/imessage_extractor.rb
Instance Method Summary collapse
Instance Method Details
#extract ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/chronicle/imessage/imessage_extractor.rb', line 27 def extract @messages.each do || = {} [:participants] = @chats[['chat_id']] [:attachments] = @attachments[['message_id']] if @attachments [:my_phone_contact] = @my_phone_contact if @my_phone_contact.values.all? [:my_icloud_account] = @my_icloud_account if @my_icloud_account.values.all? yield build_extraction(data: , meta:) end end |
#prepare ⇒ Object
23 24 25 |
# File 'lib/chronicle/imessage/imessage_extractor.rb', line 23 def prepare prepare_data end |
#results_count ⇒ Object
39 40 41 |
# File 'lib/chronicle/imessage/imessage_extractor.rb', line 39 def results_count @messages.count end |