Class: LyricsFinder::Provider::SongLyrics
- Inherits:
-
Struct
- Object
- Struct
- LyricsFinder::Provider::SongLyrics
- Defined in:
- lib/lyrics_finder/provider.rb
Instance Attribute Summary collapse
-
#song ⇒ Object
Returns the value of attribute song.
Instance Method Summary collapse
Instance Attribute Details
#song ⇒ Object
Returns the value of attribute song
32 33 34 |
# File 'lib/lyrics_finder/provider.rb', line 32 def song @song end |
Instance Method Details
#css_element ⇒ Object
37 |
# File 'lib/lyrics_finder/provider.rb', line 37 def css_element; "#songLyricsDiv"; end |
#format_url ⇒ Object
33 34 35 36 |
# File 'lib/lyrics_finder/provider.rb', line 33 def format_url song.format_attributes_with_separator!("-") "http://www.songlyrics.com/#{song.}/#{song.title}-lyrics/" end |