Class: Chronicle::Imessage::ImessageTransformer
- Inherits:
-
ETL::Transformer
- Object
- ETL::Transformer
- Chronicle::Imessage::ImessageTransformer
- 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.[:participants].map { |p| build_identity(record.data, p) } my_identity = build_identity_mine(record.data, record.extraction.[:my_icloud_account], record.extraction.[:my_phone_contact]) build_action(record.data, my_identity, participants) end |