lib/lastfm.rb in lastfm-0.4.0 vs lib/lastfm.rb in lastfm-0.5.0
- old
+ new
@@ -8,10 +8,12 @@
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'
+require 'lastfm/method_category/geo'
+require 'lastfm/method_category/library'
class Lastfm
API_ROOT = 'http://ws.audioscrobbler.com/2.0'
include HTTParty
@@ -39,9 +41,17 @@
MethodCategory::Artist.new(self)
end
def user
MethodCategory::User.new(self)
+ end
+
+ def geo
+ MethodCategory::Geo.new(self)
+ end
+
+ def library
+ MethodCategory::Library.new(self)
end
def request(method, params = {}, http_method = :get, with_signature = false, with_session = false)
params[:method] = method
params[:api_key] = @api_key