Class: VkMusicLoader::SongsDownloader
- Inherits:
-
Object
- Object
- VkMusicLoader::SongsDownloader
- Defined in:
- lib/vk_music_loader/songs_downloader.rb
Constant Summary collapse
- API_AUDIO_METHOD_PATH =
'http://api.xn--41a.ws/api.php'
- QUERY_PARAMS =
{ by_owner: { method: 'by_owner' }, search: { method: 'search' }, get: { method: 'get.audio' } }
- SONGS_LIMIT =
300
- SONGS_LIMIT_REQUEST =
10
Instance Method Summary collapse
-
#initialize(auth_key, opts) ⇒ SongsDownloader
constructor
A new instance of SongsDownloader.
- #perform ⇒ Object
Constructor Details
#initialize(auth_key, opts) ⇒ SongsDownloader
Returns a new instance of SongsDownloader.
20 21 22 23 |
# File 'lib/vk_music_loader/songs_downloader.rb', line 20 def initialize(auth_key, opts) @auth_key = auth_key @opts = opts end |
Instance Method Details
#perform ⇒ Object
25 26 27 |
# File 'lib/vk_music_loader/songs_downloader.rb', line 25 def perform get_songs_urls_and_download(get_playlist) end |