Class: VkMusic::WebParser::AudiosReload
- Defined in:
- lib/vk_music/web_parser/audios_reload.rb
Overview
Audios reload JSON parser
Instance Method Summary collapse
- #audios ⇒ Array<Audio>
-
#audios_data ⇒ Object
Array with audio data.
Methods inherited from Base
Constructor Details
This class inherits a constructor from VkMusic::WebParser::Base
Instance Method Details
#audios ⇒ Array<Audio>
13 14 15 16 17 |
# File 'lib/vk_music/web_parser/audios_reload.rb', line 13 def audios audios_data.map do |el| Utility::AudioDataParser.call(el, @client_id) end end |
#audios_data ⇒ Object
Array with audio data
8 9 10 |
# File 'lib/vk_music/web_parser/audios_reload.rb', line 8 def audios_data @audios_data ||= json['data'].first || [] end |