Class: ITuner::Source

Inherits:
Model
  • Object
show all
Defined in:
lib/ituner/source.rb

Instance Attribute Summary

Attributes inherited from Model

#app_object

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

Instance Method Details

#main_playlistObject



18
19
20
# File 'lib/ituner/source.rb', line 18

def main_playlist
  playlists.detect { |playlist| playlist.name == self.name }
end

#musicObject



28
29
30
# File 'lib/ituner/source.rb', line 28

def music
  playlists["Music"]
end

#search(*args) ⇒ Object



22
23
24
# File 'lib/ituner/source.rb', line 22

def search(*args)
  main_playlist.search(*args)
end