class Lastfm::MethodCategory::User

Public Instance Methods

get_info(*args) click to toggle source
# File lib/lastfm/method_category/user.rb, line 16
def get_info(*args)
  method = 'getInfo'
  response = if args.any?
    options = Lastfm::Util.build_options(args, [:user], [])
    request(method, options)
  else
    request_with_authentication(method)
  end
  response.xml['user'][0]
end