Class: VkMusic::Request::Artist

Inherits:
Base
  • Object
show all
Defined in:
lib/vk_music/request/artist.rb

Overview

Artist audios page request

Instance Attribute Summary

Attributes inherited from Base

#data, #headers, #method, #path, #response

Instance Method Summary collapse

Methods inherited from Base

#call

Constructor Details

#initialize(name, client_id) ⇒ Artist

Initialize new request

Parameters:

  • name (String)
  • client_id (Integer)


10
11
12
13
# File 'lib/vk_music/request/artist.rb', line 10

def initialize(name, client_id)
  @client_id = client_id
  super("#{VK_ROOT}/artist/#{name}/top_audios", {}, 'GET', {})
end