ADDED various models: playlist, track, artist, youtube_rating

This commit is contained in:
Thomas Buchöster
2011-06-06 02:25:25 +02:00
parent 9ad56ebe73
commit 00e1b4bdd3
29 changed files with 231 additions and 32 deletions
-1
View File
@@ -79,7 +79,6 @@ module LastFM
puts "<< ---- '#{current_class_name}.#{method.to_s}' -- TIME: #{response.time.to_s} ----"
hash = Hashie::Mash.new(JSON.parse(response.body))
puts hash
hash = method.to_s == "search" ? hash.results.send(node.to_sym) : hash.send(node.to_sym)
update_results "#{current_class_name}_#{method}", hash unless hash.blank?