Class: Aric::Resource::Track

Inherits:
Base
  • Object
show all
Defined in:
lib/aric/resource/track.rb

Instance Method Summary collapse

Methods inherited from Base

all, find_by, #initialize, #method_missing

Constructor Details

This class inherits a constructor from Aric::Resource::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Aric::Resource::Base

Instance Method Details

#playObject



30
31
32
# File 'lib/aric/resource/track.rb', line 30

def play
  player.play(persistentID)
end

#to_sObject



34
35
36
# File 'lib/aric/resource/track.rb', line 34

def to_s
  '%s / %s / %s / %s' % [name, artist, album, persistentID]
end