Module: VkMusic::Utility::ArtistLoader

Defined in:
lib/vk_music/utility/artist_loader.rb

Overview

Load artist top audios

Class Method Summary collapse

Class Method Details

.call(agent, client_id, name) ⇒ Array<Audio>

Parameters:

  • agent (Mechanize)
  • client_id (Integer)
  • name (String)

Returns:



11
12
13
14
# File 'lib/vk_music/utility/artist_loader.rb', line 11

def self.call(agent, client_id, name)
  page = Request::Artist.new(name, client_id).call(agent)
  page.audios
end