class RJL::Track
Public Class Methods
new(track_obj)
click to toggle source
# File lib/rjl/track.rb, line 4 def initialize track_obj @track_obj = track_obj end
Public Instance Methods
album()
click to toggle source
# File lib/rjl/track.rb, line 33 def album return @track_obj.album.get end
album=(str)
click to toggle source
# File lib/rjl/track.rb, line 36 def album=(str) @track_obj.album.set(str) end
album_artist()
click to toggle source
# File lib/rjl/track.rb, line 47 def album_artist return @track_obj.album_artist.get end
album_artist=(str)
click to toggle source
# File lib/rjl/track.rb, line 50 def album_artist=(str) @track_obj.album_artist.set(str) end
artist()
click to toggle source
# File lib/rjl/track.rb, line 19 def artist return @track_obj.artist.get end
artist=(str)
click to toggle source
# File lib/rjl/track.rb, line 22 def artist=(str) @track_obj.artist.set(str) end
class()
click to toggle source
# File lib/rjl/track.rb, line 102 def class return @track_obj.class_.get end
comment()
click to toggle source
# File lib/rjl/track.rb, line 84 def comment return @track_obj.comment.get end
comment=(str)
click to toggle source
# File lib/rjl/track.rb, line 87 def comment=(str) @track_obj.comment.set(str) end
compilation?()
click to toggle source
# File lib/rjl/track.rb, line 98 def compilation? return @track_obj.compilation.get end
composer()
click to toggle source
# File lib/rjl/track.rb, line 61 def composer return @track_obj.composer.get end
composer=(str)
click to toggle source
# File lib/rjl/track.rb, line 64 def composer=(str) @track_obj.composer.set(str) end
database_id()
click to toggle source
# File lib/rjl/track.rb, line 8 def database_id return @track_obj.database_ID.get end
disc_number()
click to toggle source
# File lib/rjl/track.rb, line 91 def disc_number return @track_obj.disc_number.get end
disc_number=(int)
click to toggle source
# File lib/rjl/track.rb, line 94 def disc_number=(int) @track_obj.disc_number.set(int) end
genre()
click to toggle source
# File lib/rjl/track.rb, line 75 def genre return @track_obj.genre.get end
genre=(str)
click to toggle source
# File lib/rjl/track.rb, line 78 def genre=(str) unless self.class == :shared_track @track_obj.genre.set(str) end end
grouping()
click to toggle source
# File lib/rjl/track.rb, line 68 def grouping return @track_obj.grouping.get end
grouping=(str)
click to toggle source
# File lib/rjl/track.rb, line 71 def grouping=(str) @track_obj.grouping.set(str) end
name()
click to toggle source
# File lib/rjl/track.rb, line 12 def name return @track_obj.name.get end
name=(str)
click to toggle source
# File lib/rjl/track.rb, line 15 def name=(str) @track_obj.name.set(str) end
sort_album()
click to toggle source
# File lib/rjl/track.rb, line 40 def sort_album return @track_obj.sort_album.get end
sort_album=(str)
click to toggle source
# File lib/rjl/track.rb, line 43 def sort_album=(str) @track_obj.sort_album.set(str) end
sort_album_artist()
click to toggle source
# File lib/rjl/track.rb, line 54 def sort_album_artist return @track_obj.sort_album_artist.get end
sort_album_artist=(str)
click to toggle source
# File lib/rjl/track.rb, line 57 def sort_album_artist=(str) @track_obj.sort_album_artist.set(str) end
sort_artist()
click to toggle source
# File lib/rjl/track.rb, line 26 def sort_artist return @track_obj.sort_artist.get end
sort_artist=(str)
click to toggle source
# File lib/rjl/track.rb, line 29 def sort_artist=(str) @track_obj.sort_artist.set(str) end
to_s()
click to toggle source
# File lib/rjl/track.rb, line 117 def to_s puts "#{self.artist} - #{self.name}" end