Sha256: 96a082eac6d9f030a95b61e0360efd682564d63ad704aff01f071c2be0167ae9

Contents?: true

Size: 371 Bytes

Versions: 9

Compression:

Stored size: 371 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} - #{@client_track.name}"
      end

      def filename
        "#{self}.mp3".tr('/', '-') # / is not allowed in file names
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spotify-to-mp3-0.7.1 lib/spotify_to_mp3/grooveshark/track.rb
spotify-to-mp3-0.7.0 lib/spotify_to_mp3/grooveshark/track.rb
spotify-to-mp3-0.6.1 lib/spotify_to_mp3/grooveshark/track.rb
spotify-to-mp3-0.6.0 lib/spotify_to_mp3/grooveshark/track.rb
spotify-to-mp3-0.5.4 lib/spotify_to_mp3/grooveshark/track.rb
spotify-to-mp3-0.5.3 lib/spotify_to_mp3/grooveshark/track.rb
spotify-to-mp3-0.5.2 lib/spotify_to_mp3/grooveshark/track.rb
spotify-to-mp3-0.5.1 lib/spotify_to_mp3/grooveshark/track.rb
spotify-to-mp3-0.5 lib/spotify_to_mp3/grooveshark/track.rb