Sha256: 330397ce2f4e5541cfe37019e1549e6516e3d2eb4023147a0cdf7ba1d559d6e6

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 Bytes

Contents

module Chronicle
  module Spotify
    class SavedAlbumsExtractor < Chronicle::Spotify::SpotifyExtractor
      register_connector do |r|
        r.provider = 'spotify'
        r.description = 'saved albums'
        r.identifier = 'saved-albums'
      end

      def extract
        @proxy.saved_albums(after: @config.since, limit: @config.limit) 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/saved_albums_extractor.rb