Class: VkMusic::Request::AudiosReload

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

Overview

Audios reload

Instance Attribute Summary

Attributes inherited from Base

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

Instance Method Summary collapse

Methods inherited from Base

#call

Constructor Details

#initialize(ids, client_id) ⇒ AudiosReload

Initialize new request

Parameters:

  • ids (Array<String>)
  • client_id (Integer)


10
11
12
13
14
15
16
17
18
# File 'lib/vk_music/request/audios_reload.rb', line 10

def initialize(ids, client_id)
  @client_id = client_id
  super(
    "#{VK_ROOT}/audio",
    { act: 'reload_audio', ids: ids.join(','), utf8: true },
    'GET',
    {}
  )
end