Module: VkMusic::Utility::AudiosIdsGetter
- Defined in:
- lib/vk_music/utility/audios_ids_getter.rb
Overview
Load ids from array of data
Class Method Summary collapse
-
.call(args) ⇒ Array<String>
Array of uniq full ids.
Class Method Details
.call(args) ⇒ Array<String>
Returns array of uniq full ids.
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/vk_music/utility/audios_ids_getter.rb', line 10 def self.call(args) ids = args.map do |item| case item when Audio then item.full_id when Array then item.join('_') when String then item end end ids.compact! ids.uniq! ids end |