Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (24 sloc) 0.935 kb
class Lastfm
module MethodCategory
class Chart < Base
regular_method :get_hyped_artists, [], [[:page, nil], [:limit, nil]] do |response|
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
Jump to Line
Something went wrong with that request. Please try again.