Class: LyricsFinder::Provider::SongLyrics

Inherits:
Struct
  • Object
show all
Defined in:
lib/lyrics_finder/provider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#songObject

Returns the value of attribute song

Returns:

  • (Object)

    the current value of song



32
33
34
# File 'lib/lyrics_finder/provider.rb', line 32

def song
  @song
end

Instance Method Details

#css_elementObject



37
# File 'lib/lyrics_finder/provider.rb', line 37

def css_element; "#songLyricsDiv"; end

#format_urlObject



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.author}/#{song.title}-lyrics/"
end