Class: TopGeniusSongs::Song
- Inherits:
-
Object
- Object
- TopGeniusSongs::Song
- Defined in:
- lib/top_genius_songs/song.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#artist ⇒ Object
Returns the value of attribute artist.
-
#description ⇒ Object
Returns the value of attribute description.
-
#link ⇒ Object
Returns the value of attribute link.
-
#title ⇒ Object
Returns the value of attribute title.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#artist ⇒ Object
Returns the value of attribute artist.
9 10 11 |
# File 'lib/top_genius_songs/song.rb', line 9 def artist @artist end |
#description ⇒ Object
Returns the value of attribute description.
9 10 11 |
# File 'lib/top_genius_songs/song.rb', line 9 def description @description end |
#link ⇒ Object
Returns the value of attribute link.
9 10 11 |
# File 'lib/top_genius_songs/song.rb', line 9 def link @link end |
#title ⇒ Object
Returns the value of attribute title.
9 10 11 |
# File 'lib/top_genius_songs/song.rb', line 9 def title @title end |
Class Method Details
.all ⇒ Object
5 6 7 |
# File 'lib/top_genius_songs/song.rb', line 5 def self.all @@all end |
Instance Method Details
#lyrics ⇒ Object
11 12 13 |
# File 'lib/top_genius_songs/song.rb', line 11 def lyrics @lyrics ||= TopGeniusSongs::Scraper.get_lyrics(self.link) end |