Class: ITuner::Track
- Extended by:
- Appscript
- Defined in:
- lib/ituner/track.rb
Instance Attribute Summary
Attributes inherited from Model
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Model
#==, action, belongs_to, has_many, #initialize, #inspect, property
Constructor Details
This class inherits a constructor from ITuner::Model
Class Method Details
.find_by_uid(uid) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/ituner/track.rb', line 23 def find_by_uid(uid) app_track = ITuner.itunes_app.tracks[its.database_ID.eq(uid)].first.get Track.new(app_track) rescue CommandError nil end |
Instance Method Details
#play ⇒ Object
15 16 17 |
# File 'lib/ituner/track.rb', line 15 def play app_object.play(:once => true) end |