Sha256: d137b2e6158ba02470a6a8988fb665f5e5c6dc7e33289b3402f9d44e71f2c694
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
module Chronicle module Spotify class LikeTransformer < Chronicle::ETL::Transformer include Chronicle::Spotify::Builders register_connector do |r| r.source = :spotify r.type = :like r.strategy = :api r.description = 'a like' r.from_schema = :extraction r.to_schema = :chronicle end def transform(record) build_like(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/like_transformer.rb |