Sha256: 7045ff7af960f15b0a8dc4f05fa60d1704f32288b74520607c01a34eb0c0c81b

Contents?: true

Size: 500 Bytes

Versions: 1

Compression:

Stored size: 500 Bytes

Contents

module Chronicle
  module Spotify
    class ListenedExtractor < Chronicle::Spotify::SpotifyExtractor
      register_connector do |r|
        r.provider = 'spotify'
        r.description = 'listened tracks'
        r.identifier = 'listens'
      end

      def extract
        @proxy.recently_played(after: @config.since, limit: @config.limit, before: @config.until) do |item|
          yield Chronicle::ETL::Extraction.new(data: item, meta: { actor: @actor })
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chronicle-spotify-0.1.0 lib/chronicle/spotify/listens_extractor.rb