Class: Shortwave::Facade::Tasteometer
- Defined in:
- lib/shortwave/facade/lastfm.rb
Instance Attribute Summary
Attributes inherited from Remote
Instance Method Summary collapse
-
#compare(type1, type2, value1, value2, options = {}) ⇒ Object
Get a Tasteometer score from two inputs, along with a list of shared artists.
Methods inherited from Remote
Constructor Details
This class inherits a constructor from Shortwave::Facade::Remote
Instance Method Details
#compare(type1, type2, value1, value2, options = {}) ⇒ Object
Get a Tasteometer score from two inputs, along with a list of shared artists. If the input is a User or a Myspace URL, some additional information is returned.
type1
-
‘user’ | ‘artists’ | ‘myspace’
type2
-
‘user’ | ‘artists’ | ‘myspace’
value1
- Last.fm username
-
| [Comma-separated artist names] | [MySpace profile URL]
value2
- Last.fm username
-
| [Comma-separated artist names] | [MySpace profile URL]
Options
limit
-
How many shared artists to display
514 515 516 |
# File 'lib/shortwave/facade/lastfm.rb', line 514 def compare(type1, type2, value1, value2, ={}) get(:standard, {:method => "tasteometer.compare", :type1 => type1, :type2 => type2, :value1 => value1, :value2 => value2}.merge()) end |