Class: VkMusic::WebParser::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/vk_music/web_parser/base.rb

Overview

Base class for all web parsers

Instance Method Summary collapse

Constructor Details

#initialize(content, client_id: nil) ⇒ Base

Returns a new instance of Base.

Parameters:

  • content (String, Nokogiri::XML::Searchable)
  • client_id (Integer?) (defaults to: nil)


9
10
11
12
# File 'lib/vk_music/web_parser/base.rb', line 9

def initialize(content, client_id: nil)
  @content = content
  @client_id = client_id
end