Class: VkMusic::Request::Profile
- Defined in:
- lib/vk_music/request/profile.rb
Overview
User or group page
Instance Attribute Summary
Attributes inherited from Base
#data, #headers, #method, #path, #response
Instance Method Summary collapse
-
#initialize(profile_id: nil, profile_custom_path: nil) ⇒ Profile
constructor
Initialize new request.
Methods inherited from Base
Constructor Details
#initialize(profile_id: nil, profile_custom_path: nil) ⇒ Profile
Initialize new request
8 9 10 11 12 13 |
# 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 |