Class: Songsterr::Artist

Inherits:
Data::Base show all
Defined in:
lib/songsterr/artist.rb

Instance Attribute Summary

Attributes inherited from Data::Base

#data

Instance Method Summary collapse

Methods inherited from Data::Base

#attachment_url, #info, #initialize, #method_missing

Constructor Details

This class inherits a constructor from Songsterr::Data::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Songsterr::Data::Base

Instance Method Details

#songsObject



3
4
5
# File 'lib/songsterr/artist.rb', line 3

def songs
  @songs ||= Song.where(:artist => info(:name))
end