Class: Shortwave::Facade::Tasteometer

Inherits:
Remote
  • Object
show all
Defined in:
lib/shortwave/facade/lastfm.rb

Instance Attribute Summary

Attributes inherited from Remote

#session

Instance Method Summary collapse

Methods inherited from Remote

#initialize

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, options={})
  get(:standard, {:method => "tasteometer.compare", :type1 => type1, :type2 => type2, :value1 => value1, :value2 => value2}.merge(options))
end