Sha256: fa5aa103ffd48c86b79881e45ad519510a4be47f9949a320657f32fbad040ec2
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 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 return @playlists unless @playlists.nil? playlists = RSpotify.auth_get("users/#{@id}/playlists")['items'] @playlists = playlists.map { |p| Playlist.new p } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspotify-0.5.0 | lib/rspotify/user.rb |