Class: LyricsFinder::Provider::LyricsWikia

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

Overview

Providers Structs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#songObject

Returns the value of attribute song



24
25
26
# File 'lib/lyrics_finder/provider.rb', line 24

def song
  @song
end

Instance Method Details

#css_elementObject



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

def css_element; ".lyricbox"; end

#format_urlObject



25
26
27
28
# File 'lib/lyrics_finder/provider.rb', line 25

def format_url
  song.format_attributes_with_separator!("_")
  "http://lyrics.wikia.com/#{song.author}:#{song.title}"
end