lib/lastfm.rb in lastfm-0.2.1 vs lib/lastfm.rb in lastfm-0.3.0
- old
+ new
@@ -7,10 +7,11 @@
require 'lastfm/response'
require 'lastfm/method_category/base'
require 'lastfm/method_category/auth'
require 'lastfm/method_category/track'
require 'lastfm/method_category/artist'
+require 'lastfm/method_category/user'
class Lastfm
API_ROOT = 'http://ws.audioscrobbler.com/2.0'
include HTTParty
@@ -34,9 +35,13 @@
MethodCategory::Track.new(self)
end
def artist
MethodCategory::Artist.new(self)
+ end
+
+ def user
+ MethodCategory::User.new(self)
end
def request(method, params = {}, http_method = :get, with_signature = false, with_session = false)
params[:method] = method
params[:api_key] = @api_key