Class: Chronicle::Spotify::SpotifyExtractor

Inherits:
ETL::Extractor
  • Object
show all
Defined in:
lib/chronicle/spotify/spotify_extractor.rb

Instance Method Summary collapse

Instance Method Details

#prepareObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/chronicle/spotify/spotify_extractor.rb', line 10

def prepare
  @proxy = Proxy.new(
    uid: @config.uid,
    access_token: @config.access_token,
    refresh_token: @config.refresh_token,
    client_id: @config.client_id,
    client_secret: @config.client_secret
  )
  @agent = @proxy.user
end