From de8d11790c6c20cda59ec14f4188cfbbba6b9eb2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 14 Dec 2015 04:16:16 +0000 Subject: tracklist: add versioning This will allow us to implement the versioning policy of mpd. But perhaps that's a bad idea... --- lib/dtas/track.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/dtas/track.rb') diff --git a/lib/dtas/track.rb b/lib/dtas/track.rb index e5a3051..e62a30e 100644 --- a/lib/dtas/track.rb +++ b/lib/dtas/track.rb @@ -6,9 +6,11 @@ require_relative '../dtas' class DTAS::Track # :nodoc: attr_reader :track_id attr_reader :to_path + attr_reader :version - def initialize(track_id, path) + def initialize(track_id, path, version) @track_id = track_id @to_path = path + @version = version end end -- cgit v1.2.3-24-ge0c7