Class: ITuner::Source
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_playlist ⇒ Object
18
19
20
|
# File 'lib/ituner/source.rb', line 18
def main_playlist
playlists.detect { |playlist| playlist.name == self.name }
end
|
#music ⇒ Object
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
|