Class: VkMusic::WebParser::Post

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

Overview

Post page web parser

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from VkMusic::WebParser::Base

Instance Method Details

#audiosArray<Audio>

Returns:



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

def audios
  node.css('.wi_body > .pi_medias .medias_audio').map do |el|
    Utility::AudioNodeParser.call(el, @client_id)
  end
end