Class: Chronicle::Spotify::LikeTransformer

Inherits:
ETL::Transformer
  • Object
show all
Includes:
Builders
Defined in:
lib/chronicle/spotify/like_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/like_transformer.rb', line 15

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