Class: Lastfm::User

Inherits:
MethodCategory show all
Defined in:
lib/lastfm/method_category/user.rb

Instance Method Summary collapse

Methods inherited from MethodCategory

#initialize, #request, #request_for_authentication, #request_with_authentication, #write_request

Constructor Details

This class inherits a constructor from Lastfm::MethodCategory

Instance Method Details

#get_info(user) ⇒ Object



3
4
5
6
7
# File 'lib/lastfm/method_category/user.rb', line 3

def get_info(user)
  request('getInfo', {
    :user => user
  })
end

#get_loved_tracks(user) ⇒ Object



9
10
11
12
13
# File 'lib/lastfm/method_category/user.rb', line 9

def get_loved_tracks(user)
  request('getLovedTracks', {
    :user => user
  })
end

#get_recent_tracks(user) ⇒ Object



15
16
17
18
19
# File 'lib/lastfm/method_category/user.rb', line 15

def get_recent_tracks(user)
  request('getRecentTracks', {
    :user => user
  })
end