Class: Karaoke::Song::Base
- Inherits:
-
Object
- Object
- Karaoke::Song::Base
- Defined in:
- lib/karaoke/song/base.rb
Direct Known Subclasses
Azlyrics, Directlyrics, Genius, LimitlessLyrics, LyricsMania, Lyricsfreak, Lyricsmode, MetroLyrics
Instance Attribute Summary collapse
-
#lyrics_url ⇒ Object
readonly
Returns the value of attribute lyrics_url.
Instance Method Summary collapse
- #artist ⇒ Object
-
#initialize(lyrics_url) ⇒ Base
constructor
A new instance of Base.
- #lyrics ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(lyrics_url) ⇒ Base
Returns a new instance of Base.
10 11 12 |
# File 'lib/karaoke/song/base.rb', line 10 def initialize(lyrics_url) @lyrics_url = lyrics_url end |
Instance Attribute Details
#lyrics_url ⇒ Object (readonly)
Returns the value of attribute lyrics_url.
8 9 10 |
# File 'lib/karaoke/song/base.rb', line 8 def lyrics_url @lyrics_url end |
Instance Method Details
#artist ⇒ Object
14 15 16 |
# File 'lib/karaoke/song/base.rb', line 14 def artist raise NotImplementedError.new("The Song::Base subclass needs to override the #artist method.") end |
#lyrics ⇒ Object
22 23 24 |
# File 'lib/karaoke/song/base.rb', line 22 def lyrics raise NotImplementedError.new("The Song::Base subclass needs to override the #lyrics method.") end |
#title ⇒ Object
18 19 20 |
# File 'lib/karaoke/song/base.rb', line 18 def title raise NotImplementedError.new("The Song::Base subclass needs to override the #title method.") end |