Class: LastFM::Api::Tasteometer
- Inherits:
-
Object
- Object
- LastFM::Api::Tasteometer
- Defined in:
- lib/lastfm/api/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.
13 14 15 16 17 |
# File 'lib/lastfm/api/tasteometer.rb', line 13 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.
30 31 32 |
# File 'lib/lastfm/api/tasteometer.rb', line 30 def compare_group(params) LastFM.get( "tasteometer.compareGroup", params ) end |