Sha256: 6988667bf0e1148b35716e59c192162d42cb6843a05fdf80fbe24bdd7a8f8ff3
Contents?: true
Size: 383 Bytes
Versions: 1
Compression:
Stored size: 383 Bytes
Contents
module SpotifyToMp3 class Grooveshark class Track attr_reader :client_track def initialize(client_track) @client_track = client_track end def to_s "#{@client_track.artist.strip} - #{@client_track.name.strip}" end def filename "#{self}.mp3".tr('/', '-') # / is not allowed in file names end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spotify-to-mp3-0.7.2 | lib/spotify_to_mp3/grooveshark/track.rb |