Sha256: b58d1f9f5aebe3f7bd84cad45b47aa0e5a15cabd0ac9f776cfb2d69798dca2e4
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
module Chronicle module Spotify class ListenTransformer < Chronicle::ETL::Transformer include Chronicle::Spotify::Builders register_connector do |r| r.source = :spotify r.type = :listen r.strategy = :api r.description = 'a listen' r.from_schema = :extraction r.to_schema = :chronicle end def transform(record) build_listen(record: record.data, agent: record.extraction.meta[:agent]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chronicle-spotify-0.2.0 | lib/chronicle/spotify/listen_transformer.rb |