Class: Lastfm::Track
Instance Method Summary
collapse
-
#add_tags(artist, track, tags) ⇒ Object
-
#ban(artist, track) ⇒ Object
-
#get_info(artist, track, username = nil) ⇒ Object
-
#get_similar(artist, track) ⇒ Object
-
#get_tags(artist, track) ⇒ Object
-
#get_top_fans(artist, track) ⇒ Object
-
#get_top_tags(artist, track) ⇒ Object
-
#love(artist, track) ⇒ Object
-
#remove_tag(artist, track, tag) ⇒ Object
-
#search(artist, track, limit = nil, page = nil) ⇒ Object
-
#share(artist, track, recipient, message = nil) ⇒ Object
#initialize, #request, #request_for_authentication, #request_with_authentication, #write_request
Instance Method Details
3
4
5
6
7
8
9
|
# File 'lib/lastfm/method_category/track.rb', line 3
def add_tags(artist, track, tags)
write_request('addTags', {
:artist => artist,
:track => track,
:tags => tags
})
end
|
#ban(artist, track) ⇒ Object
11
12
13
14
15
16
|
# File 'lib/lastfm/method_category/track.rb', line 11
def ban(artist, track)
write_request('ban', {
:artist => artist,
:track => track,
})
end
|
#get_info(artist, track, username = nil) ⇒ Object
18
19
20
21
22
23
24
|
# File 'lib/lastfm/method_category/track.rb', line 18
def get_info(artist, track, username = nil)
request('getInfo', {
:artist => artist,
:track => track,
:username => username
})
end
|
#get_similar(artist, track) ⇒ Object
26
27
28
29
30
31
|
# File 'lib/lastfm/method_category/track.rb', line 26
def get_similar(artist, track)
request('getSimilar', {
:artist => artist,
:track => track,
})
end
|
33
34
35
36
37
38
|
# File 'lib/lastfm/method_category/track.rb', line 33
def get_tags(artist, track)
request_with_authentication('getTags', {
:artist => artist,
:track => track,
})
end
|
#get_top_fans(artist, track) ⇒ Object
40
41
42
43
44
45
|
# File 'lib/lastfm/method_category/track.rb', line 40
def get_top_fans(artist, track)
request('getTopFans', {
:artist => artist,
:track => track,
})
end
|
47
48
49
50
51
52
|
# File 'lib/lastfm/method_category/track.rb', line 47
def get_top_tags(artist, track)
request('getTopTags', {
:artist => artist,
:track => track,
})
end
|
#love(artist, track) ⇒ Object
54
55
56
57
58
59
|
# File 'lib/lastfm/method_category/track.rb', line 54
def love(artist, track)
write_request('love', {
:artist => artist,
:track => track,
})
end
|
#remove_tag(artist, track, tag) ⇒ Object
61
62
63
64
65
66
67
|
# File 'lib/lastfm/method_category/track.rb', line 61
def remove_tag(artist, track, tag)
write_request('removeTag', {
:artist => artist,
:track => track,
:tag => tag
})
end
|
#search(artist, track, limit = nil, page = nil) ⇒ Object
69
70
71
72
73
74
75
76
|
# File 'lib/lastfm/method_category/track.rb', line 69
def search(artist, track, limit = nil, page = nil)
request('search', {
:artist => artist,
:track => track,
:limit => limit,
:page => page
})
end
|
#share(artist, track, recipient, message = nil) ⇒ Object
78
79
80
81
82
83
84
85
|
# File 'lib/lastfm/method_category/track.rb', line 78
def share(artist, track, recipient, message = nil)
write_request('share', {
:artist => artist,
:track => track,
:recipient => recipient,
:message => message
})
end
|