Class: VkMusic::Request::WallSection

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

Overview

Wall in JSON sections 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(owner_id, post_id, client_id) ⇒ WallSection

Initialize new request

Parameters:

  • owner_id (Integer)
  • post_id (Integer)
  • offset (Integer)
  • client_id (Integer)


12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/vk_music/request/wall_section.rb', line 12

def initialize(owner_id, post_id, client_id)
  @client_id = client_id
  super(
    "#{VK_ROOT}/audio",
    {
      act: 'load_section', type: 'wall', utf8: true,
      owner_id: owner_id, post_id: post_id, wall_type: 'own'
    },
    'GET',
    {}
  )
end