lib/rapgenius/annotation.rb in rapgenius-0.0.2 vs lib/rapgenius/annotation.rb in rapgenius-0.0.3
- old
+ new
@@ -24,13 +24,14 @@
@explanation ||= document.css('meta[property="rap_genius:body"]').
attr('content').to_s
end
def song
- entry_path = document.css('meta[property="rap_genius:song"]').
- attr('content').to_s
-
- @song ||= Song.new(entry_path)
+ @song ||= Song.new(song_url)
end
+ def song_url
+ @song_url ||= document.css('meta[property="rap_genius:song"]').
+ attr('content').to_s
+ end
end
-end
\ No newline at end of file
+end