Sha256: 0816173c77a4b3ddb491c0529f74f4bbef9cd48df95e23ce687903f65fbe9e1a

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

module RSpotify

  class User < Base

    def self.find(id)
      super(id, 'user')
    end

    def self.search
      #TODO
    end

    def initialize(options = {})
      super(options)
    end

    def playlists
      playlists = RSpotify.auth_get("users/#{@id}/playlists")['items']
      playlists.map { |p| Playlist.new p }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspotify-0.4.0 lib/rspotify/user.rb