Class: Chronicle::Spotify::ListenedExtractor

Inherits:
SpotifyExtractor show all
Defined in:
lib/chronicle/spotify/listens_extractor.rb

Instance Method Summary collapse

Methods inherited from SpotifyExtractor

#prepare

Instance Method Details

#extractObject



11
12
13
14
15
# File 'lib/chronicle/spotify/listens_extractor.rb', line 11

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