Sha256: 76b49dc762b45407027cabbf8a03f10cb4c950d15d0b365df03258d59e689c94
Contents?: true
Size: 493 Bytes
Versions: 1
Compression:
Stored size: 493 Bytes
Contents
module Chronicle module Spotify class ListenedExtractor < Chronicle::Spotify::SpotifyExtractor register_connector do |r| r.source = :spotify r.type = :listen r.strategy = :api r.description = 'listens' end def extract @proxy.recently_played(after: @config.since, limit: @config.limit, before: @config.until) do |item| yield build_extraction(data: item, meta: { agent: @agent }) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chronicle-spotify-0.2.0 | lib/chronicle/spotify/listens_extractor.rb |