Class: LastFM::Tasteometer
- Inherits:
-
Object
- Object
- LastFM::Tasteometer
- Defined in:
- lib/lastfm/tasteometer.rb
Class Method Summary collapse
-
.compare(params) ⇒ Object
Get a Tasteometer score from two inputs, along with a list of shared artists.
-
.compare_group(params) ⇒ Object
deprecated
Deprecated.
This service has been deprecated and is no longer available
Class Method Details
.compare(params) ⇒ Object
Get a Tasteometer score from two inputs, along with a list of shared artists. If the input is a User some additional information is returned.
12 13 14 15 16 |
# File 'lib/lastfm/tasteometer.rb', line 12 def compare( params ) Array(params.delete(:types)).each_with_index{|val, i| params["type[#{i}]"] = val} Array(params.delete(:values)).each_with_index{|val, i| params["value[#{i}]"] = val} LastFM.get( "tasteometer.compare", params ) end |
.compare_group(params) ⇒ Object
Deprecated.
This service has been deprecated and is no longer available
Get the scores between every user in a group of users, plus shared artists. Cuts off any similarities below a cutoff. Also returns a list of all users in the comparison and a small amount of metadata about each. Can take the list of users from a group, or a users friends.
29 30 31 |
# File 'lib/lastfm/tasteometer.rb', line 29 def compare_group(params) LastFM.get( "tasteometer.compareGroup", params ) end |