class SpotifyToMp3::Grooveshark::Track
Attributes
client_track[R]
Public Class Methods
new(client_track)
click to toggle source
# File lib/spotify_to_mp3/grooveshark/track.rb, line 6 def initialize(client_track) @client_track = client_track end
Public Instance Methods
filename()
click to toggle source
# File lib/spotify_to_mp3/grooveshark/track.rb, line 14 def filename "#{self}.mp3".tr('/', '-') # / is not allowed in file names end
to_s()
click to toggle source
# File lib/spotify_to_mp3/grooveshark/track.rb, line 10 def to_s "#{@client_track.artist.strip} - #{@client_track.name.strip}" end