lib/chronicle/spotify/liked_tracks_extractor.rb in chronicle-spotify-0.1.0 vs lib/chronicle/spotify/liked_tracks_extractor.rb in chronicle-spotify-0.2.0
- old
+ new
@@ -1,16 +1,17 @@
module Chronicle
module Spotify
class SavedTracksExtractor < Chronicle::Spotify::SpotifyExtractor
register_connector do |r|
- r.provider = 'spotify'
+ r.source = :spotify
+ r.type = :like
+ r.strategy = :api
r.description = 'liked tracks'
- r.identifier = 'liked-tracks'
end
def extract
@proxy.saved_tracks(after: @config.since, limit: @config.limit) do |item|
- yield Chronicle::ETL::Extraction.new(data: item, meta: { actor: @actor })
+ yield build_extraction(data: item, meta: { agent: @agent })
end
end
end
end
end