Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d04400d0da
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (26 sloc) 1.275 kb
module Scrobbler2
class User < Base
def initialize(username)
@query = {:user => username}
end
has_resource :events, :root => "events"
has_resource :info, :root=>"user", :auth=>true, :query => {}
has_resource :friends, :root => "friends"
has_resource :loved_tracks, :root => "lovedtracks"
has_resource :neighbours, :root => "neighbours"
has_resource :past_events, :root => "events"
has_resource :playlists, :root => "playlists"
has_resource :recent_tracks, :root => "recenttracks"
has_resource :recommended_artists, :root => "recommendedartists", :auth => true, :query => {}
has_resource :recommended_events, :root => "recommendedevents", :auth => true, :query => {}
has_resource :shouts, :root => "shouts"
has_resource :top_albums, :root => "topalbums"
has_resource :top_artists, :root => "topartists"
has_resource :top_tags, :root => "toptags"
has_resource :top_tracks, :root => "toptracks"
has_resource :weekly_album_chart, :root => "weeklyalbumchart"
has_resource :weekly_artist_chart, :root => "weeklyartistchart"
has_resource :weekly_chart_list, :root => "weeklychartlist"
has_resource :weekly_track_chart, :root => "weeklytrackchart"
end
end
Jump to Line
Something went wrong with that request. Please try again.