Method: Muzak::Index#album_names

Defined in:
lib/muzak/index.rb

#album_namesArray<String>

Note:

albums with the same name will appear, but can't be disambiguated from here

Returns a list of all albums in the index.

Returns:

  • (Array<String>)

    a list of all albums in the index



66
67
68
# File 'lib/muzak/index.rb', line 66

def album_names
  artists.map { |a| @hash["artists"][a]["albums"].keys }.flatten
end