Permalink
Browse files

Adds more charts

  • Loading branch information...
1 parent 8129858 commit 28e57bf876afe8f3eb13a1f8a6e3b97eb124c936 @rahilsondhi committed Feb 25, 2013
Showing with 16 additions and 0 deletions.
  1. +16 −0 lib/lastfm/method_category/chart.rb
@@ -5,9 +5,25 @@ class Chart < Base
response.xml['artists']['artist']
end
+ regular_method :get_hyped_tracks, [], [[:page, nil], [:limit, nil]] do |response|
+ response.xml['tracks']['track']
+ end
+
+ regular_method :get_loved_tracks, [], [[:page, nil], [:limit, nil]] do |response|
+ response.xml['tracks']['track']
+ end
+
regular_method :get_top_artists, [], [[:page, nil], [:limit, nil]] do |response|
response.xml['artists']['artist']
end
+
+ regular_method :get_top_tags, [], [[:page, nil], [:limit, nil]] do |response|
+ response.xml['tags']['tag']
+ end
+
+ regular_method :get_top_tracks, [], [[:page, nil], [:limit, nil]] do |response|
+ response.xml['tracks']['track']
+ end
end
end
end

0 comments on commit 28e57bf

Please sign in to comment.