module GoogleMusicApi::Genre
Keeps all the genre-related methods
Public Instance Methods
get_genres(parent_id = nil)
click to toggle source
Returns all genres or all subgenres if parent_id is passed
@param [String] parent_id @return [Array] of hashes that describe a genre @example Get all the subgenres of Jazz mobile_client.get_genres('JAZZ')
# File lib/google_music_api/genre.rb, line 9 def get_genres(parent_id = nil) url = 'explore/genres' options = {} options[:query] = {'parent-genre': parent_id} if parent_id make_get_request(url, options)['genres'] end