Class: Chronicle::Spotify::ListenTransformer

Inherits:
ETL::Transformer
  • Object
show all
Includes:
Builders
Defined in:
lib/chronicle/spotify/listen_transformer.rb

Instance Method Summary collapse

Methods included from Builders

#build_agent, #build_album, #build_artist, #build_like, #build_listen, #build_track

Instance Method Details

#transform(record) ⇒ Object



15
16
17
# File 'lib/chronicle/spotify/listen_transformer.rb', line 15

def transform(record)
  build_listen(record: record.data, agent: record.extraction.meta[:agent])
end