class VkMusic::Request::Profile

User or group page

Public Class Methods

new(profile_id: nil, profile_custom_path: nil) click to toggle source

Initialize new request

Calls superclass method VkMusic::Request::Base::new
# File lib/vk_music/request/profile.rb, line 8
def initialize(profile_id: nil, profile_custom_path: nil)
  profile_path =
    profile_custom_path ||
    "#{profile_id.negative? ? 'club' : 'id'}#{profile_id.abs}"
  super("#{VK_ROOT}/#{profile_path}", {}, 'GET', {})
end

Private Instance Methods

after_call() click to toggle source
# File lib/vk_music/request/profile.rb, line 19
def after_call
  @parser = WebParser::Profile.new(@response)
end