Class: VkMusic::WebParser::AudiosReload

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

Overview

Audios reload JSON 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:



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_dataObject

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