def playlists(limit: 20, offset: 0, **options)
      url = "browse/categories/#{@id}/playlists"\
            "?limit=#{limit}&offset=#{offset}"

      options.each do |option, value|
        url << "&#{option}=#{value}"
      end

      response = RSpotify.get(url)
      return response if RSpotify.raw_response
      response['playlists']['items'].map { |i| Playlist.new i }
    end
def playlists(limit: 20, offset: 0, **options)
      url = "browse/categories/#{@id}/playlists"\
            "?limit=#{limit}&offset=#{offset}"

      options.each do |option, value|
        url << "&#{option}=#{value}"
      end

      response = RSpotify.get(url)
      return response if RSpotify.raw_response
      response['playlists']['items'].map { |i| Playlist.new i }
    end
Get a list of Spotify playlists tagged with a particular category.

 @param limit  [Integer] Maximum number of playlists to return. Maximum: 50. Default: 20.
 @param offset [Integer] The index of the first playlist to return. Use with limit to get the next set of playlists. Default: 0.
 @param country [String] Optional. A country: an {http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO 3166-1 alpha-2 country code}. Provide this parameter if you want to narrow the list of returned playlists to those relevant to a particular country. If omitted, the returned playlists will be globally relevant.
 @return [Array<Playlist>]

 @example
           playlists = category.playlists
           playlists = category.playlists(country: 'BR')
           playlists = category.playlists(limit: 10, offset: 20)