Class: Chronicle::Imessage::ImessageTransformer

Inherits:
ETL::Transformer
  • Object
show all
Defined in:
lib/chronicle/imessage/imessage_transformer.rb

Instance Method Summary collapse

Instance Method Details

#transform(record) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/chronicle/imessage/imessage_transformer.rb', line 16

def transform(record)
  participants = record.extraction.meta[:participants].map { |p| build_identity(record.data, p) }
  my_identity = build_identity_mine(record.data, record.extraction.meta[:my_icloud_account],
    record.extraction.meta[:my_phone_contact])

  build_action(record.data, my_identity, participants)
end