Module: VkMusic::Utility::AudioNodeParser
- Defined in:
- lib/vk_music/utility/audio_node_parser.rb
Overview
Parse Audio from Nokogiri::XML::Node
Class Method Summary collapse
Class Method Details
.call(node, client_id) ⇒ Audio
11 12 13 14 15 16 17 18 |
# File 'lib/vk_music/utility/audio_node_parser.rb', line 11 def call(node, client_id) input = node.at_css('input') if input parse_input(input, node, client_id) else parse_post(node, client_id) end end |